Why I'm Excited about D

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 8 08:09:05 PDT 2015


On Wednesday, 8 April 2015 at 14:57:15 UTC, Ola Fosheim Grøstad 
wrote:
> On Wednesday, 8 April 2015 at 13:52:22 UTC, bearophile wrote:
>> I think "foo.writeln;" is acceptable. You just need to get a 
>> bit used to it.
>
> The whole dot-notation for pipelining is semantically flawed en 
> relies on knowing what names stand for rather than more 
> universal symbols with known interpretations. It has been 
> (ab)used quite a bit in OO-libraries for other languages, for 
> chaining, which can be rather confusing when you use many 
> libraries.
>
> Dedicated pipeline operators look much better 
> ("input->process->output"). Add dataflow with multiple paths 
> and high level optimization, then you have something.

I kind of agree with this one. Range based pipeline has 
established rather late as core D idiom but in general it is 
distinct enough to warrant own syntax.


More information about the Digitalmars-d mailing list