Curious thoughts, regarding functional programming

simendsjo simendsjo at gmail.com
Wed Oct 12 03:03:43 PDT 2011


On 12.10.2011 11:57, Nick Sabalausky wrote:
> "Gor Gyolchanyan"<gor.f.gyolchanyan at gmail.com>  wrote in message
> news:mailman.62.1318407737.24802.digitalmars-d at puremagic.com...
>>
>> spawn(5, 4, 65)(int x, int y, int z)
>> {
>>    /*...*/
>> };
>>
>> IMO, this looks WAY more beautiful, then what we have now.
>> I don't see any reason why this would break existing code.
>> I know, I know this is hard to implement and we got better things to do.
>> I'm just saying. This would look good.
>
> That's actually a pretty common feature request for D.
>
>

I don't find this very ugly:
spawn(5,4,65)( (int x, int y, int z)
{
   /*...*/
});

I would much rather push uniformed function call syntax (correct 
definition?) forward.


More information about the Digitalmars-d mailing list