How to imporve D-translation of these Python list comprehensions ?

lobo swamp.lobo at gmail.com
Mon Jan 15 21:13:17 UTC 2018


On Monday, 15 January 2018 at 19:05:52 UTC, xenon325 wrote:
> A workmate has recently shown this piece of code to show how 
> nice Python is (we are mostly C and growing C++ shop):
>
> [...]

Well if that is what they can do in Python I'd hate to see their 
C++! They have done a great job making Python code read like 
Perl. This looks like something you'd see in an assignment at 
uni; "Decipher this Python code and port to your language of 
choice" :)


More information about the Digitalmars-d-learn mailing list