3 ms·
Fun fact: Array(1, 2, 3) someList(0) array(0) = 23.42 map("name") = "Joe" All of this is valid MUMPS syntax and does what you'd think. I'd lo
by quink 7y ago
Fun fact:
Array(1, 2, 3)
someList(0)
array(0) = 23.42
map("name") = "Joe"
All of this is valid MUMPS syntax and does what you'd think.
I'd loooove to hear the author's thoughts on the above then extending weird parentheses syntax crap to function calls, MUMPS style too:
USER>s foo(1) = "hi,there"
USER>s $p(foo(1), ",", 2) = "you"
USER>w foo(1)
hi,you
USER>
Maybe I'm warning of a slippery slope here, but this is a direction that I'm not sure you'll want to go down.
Also a fun fact, MUMPS has very dynamic typing and thus very much no type annotations.