Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What I miss about Pascal is its offset indices. You could start an array at 0, 1, 42, or what have you. Useful in rare circumstances!


Julia has this. It’s called OffsetArrays.jl. Ironically, it’s a common source of bugs because library authors don’t always anticipate them and loop over 1:length(A) rather than eachindex(A).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: