4 ms·
Scala had it before WL, with "_" which can be used with two or more arguments where necessary. I suspect other languages had it earlier than that. It's a very
by lmm 9y ago
Scala had it before WL, with "_" which can be used with two or more arguments where necessary. I suspect other languages had it earlier than that.
It's a very useful shorthand, although it becomes less necessary with properly first class functions and/or currying by default. E.g. I don't know if Haskell has it at all, but it doesn't need it.
- sbmassey 9y agoMathematica has had that syntax since the 1990's at least. Plus there's good old q's implicit argument naming of x, y, z when you didn't give the args explicit names: each[{2*x}] 1 2 3 1 2 3 {x*y}/: 4 5 6
- bloaf 9y agohttp://reference.wolfram.com/language/ref/Slot.html?q=Slot http://reference.wolfram.com/language/ref/Slot.html?q=Slot At the bottom of the page, it says: >Introduced in 1988 (1.0) So WL had this syntax several years before the JVM was even invented.
- lmm 9y agoHmm, I thought I remembered WL being announced a few years ago, long after I was using this stuff on the JVM.