D code length vs other languages

Steven Schveighoffer schveiguy at gmail.com
Mon Dec 9 16:33:30 UTC 2019


On 12/7/19 4:28 AM, Jesse Phillips wrote:
> On Friday, 6 December 2019 at 20:09:46 UTC, Paolo Invernizzi wrote:
>>
>> Maybe you are both right ... and maybe I've written too much Python 
>> code in the past years and indeed, UFCS chains are a killer future of 
>> D: every list comprehension was turned into a nice UFCS chain.
>>
>> Let's forget about that: the point is still taken by D, converting 
>> python code in D code is a pleasant experience!
> 
> https://dev.to/jessekphillips/map-reduce-in-d-25nm
> 
> This was my very brief comparison of List comprehension vs Ds libraries.

"In the first situation filtering came before the operation, here it 
will ultimately be useless because it operates on the square of a number 
which is always even."

You sure about that? ;)

-Steve


More information about the Digitalmars-d mailing list