Re:A few things to remember while coding in Python
by fferen on Saturday May 19, 2012 @06:45PM
(#3997308)
To elaborate, this is because of D's Uniform Function Call Syntax (http://www.drdobbs.com/blogs/cpp/232700394) - any function that takes an object as first argument can be called as though it were a method of that object; "map" and "filter" are actually functions in the std.algorithm module. It's a pretty neat trick and although in principle it could make things harder to reason about I haven't had any problems with it so far.
[ Parent
| on HN ]
There are no comments on this comment yet.