2 ms·
I like this syntax improvement. It simplifies the very common case of calling a function with an object as a way to pass named arguments. It reminds me, I beli
by lioeters 6y ago
I like this syntax improvement. It simplifies the very common case of calling a function with an object as a way to pass named arguments.
It reminds me, I believe Lua has similar syntax sugar that works with tables as well as strings.
fn "hello"
is equivalent to
fn("hello")