by minimax · 13y ago · 0 comments
I saw an example of R code using underscore for assignment posted on twitter a couple of months ago. See if you can make heads or tails of this: http://www.stat.washington.edu/hoff/Code/hoff_raftery_handco...
... and since the dot is legal in identifiers, they use $ as lookup operator.
> ice.cream$flavor
[1] "chocolate" "vanilla" "butterscotch advocado surprise"Huh, early Smalltalk mapped the left arrow to the underscore key; I'm not sure if Squeak and Pharo still do it, though.