Re:Array Languages: R vs. APL
by empyrrhicist on Thursday March 21, 2024 @05:25PM
(#39784591)
I saw a funny presentation where Doug Bates said something like: "This kind of evaluation opens the door to do many strange and unspeakable things in R... for some reason Hadley Wickham is very excited about this."
[ Parent
| on HN ]
Unspeakable horrors like changing `$[` in old Perl5 versions to mess with someone's mind? Who doesn't like array indices starting at 0, 1, ... or 42?
Re:Array Languages: R vs. APL
by jonocarroll on Sunday March 24, 2024 @09:05PM
(#39812000)
In Dyalog APL you can set the index origin with βIOβ0 (or 1) and there are many ways in which this can bite you. In Lua, and I think Fortran, you can specify the range of array indices manually.