I’d be interested in some before-and-after c# examples, some non-idiomatic vs idiomatic examples. Non-c# examples would be fine as well if they get the idea across. Thanks.
I’d be interested in some before-and-after c# examples, some non-idiomatic vs idiomatic examples. Non-c#
Share
Idiomatic means following the conventions of the language. You want to find the easiest and most common ways of accomplishing a task rather than porting your knowledge from a different language.
non-idiomatic python using a loop with append:
idiomatic python using a list comprehension: