Uniform function call syntax treats `fido.bark()` the same as `Dog::bark(fido)`.
This seems like a really nice way of representing methods in a language. Are there any downsides? There are plenty of languages without this.
Uniform function call syntax (UFCS) is nifty: I can write foo(x, y, z) or http://x.foo(y, z).
Dot syntax for calls works incredibly well for IDE completion. Are there any languages that explicitly offer UFCS so the IDE experience is better?
Wilfred Hughes
Shared words: Uniform, function, call, syntax, language
Score: 105.8
A lightweight anonymous function syntax seems to reduce the need for metaprogramming.
I've written custom loop constructs with lisp macros, but Smalltalk seems to do just fine with blocks and method calls.
Another nice feature of OO in Common Lisp: you initialise your class instance with the function initialize-instance.
So many languages define a 'construct' as a method that has access to the current instance, which is really kinda confusing (c.f. __init__ and __new__ in Python).
Wilfred Hughes
Shared words: function, really, nice, methods, language
Score: 83.9