3 ms·
For others unfamiliar with the acronym, it looks like it's Universal Function Call Syntax - en.m.wikipedia.org/wiki/Uniform_Function_Call_Syntax Lets you call
by rattray 8y ago
For others unfamiliar with the acronym, it looks like it's Universal Function Call Syntax - en.m.wikipedia.org/wiki/Uniform_Function_Call_Syntax
Lets you call top-level funtions as if they were metnks, with the receiver as the first argument.
For example, these two are equivalent:
add(x, y)
x.add(y)
As an aside, I added a similar feature to my compile-to-js lang (http://lightscript.org http://lightscript.org) and have found it to be a delightful feature. I hope an equivalent passes TC39.