betterC question

Dibyendu Majumdar d.majumdar at gmail.com
Thu Nov 19 12:10:32 UTC 2020


On Thursday, 19 November 2020 at 01:42:16 UTC, Mike Parker wrote:
> On Thursday, 19 November 2020 at 00:20:50 UTC, Dibyendu 
> Majumdar wrote:
>> On Thursday, 19 November 2020 at 00:18:54 UTC, rikki 
>> cattermole wrote:
>>
>>>
>>> You don't need the brackets to call a function (and with a 
>>> little help from UFCS):
>>>
>>> void main() {
>>> 	import std.stdio;
>>> 	
>>> 	"Hello!".writeln;
>>> 	writeln;
>>> }
>>
>> Okay thanks. Bad idea IMO.
>
> Imagine what range pipelines would look like without it. This 
> is one of my favorite D features.

Well Java and C# have streams and it looks perfectly fine without 
this kind of syntax.




More information about the Digitalmars-d-learn mailing list