3 ms·
I'm reminded of the language Nim, where x.f(y) and f(x,y) are both the same thing with different syntactic sugar.
by zyxley 11y ago
I'm reminded of the language Nim, where x.f(y) and f(x,y) are both the same thing with different syntactic sugar.
- nazgul17 11y agoI thought of Nim, too. To add to your comment, Nim's "Unified Call Syntax" recognises as the same len(x), x.len() and also x.len (this is similar to Ruby's poetry mode, if I am not mistaken). I find it cool, but I can also imagine reasons for which the latter would not be appreciated by the C++ community.