nolta/julia — comment on commit 133a9f655f336f1c21b1388f6f5431d2f4e37314
File:  line 0
By nolta:

Yeah, to be honest i didn't really understand this change when i made it, i was just aping the implementations of `chop` & `chomp`.

I'm still getting used to how ranges work in julia. For example, there's this trap for pythonistas:

julia> s = "hello"
"hello"

julia> s[4:]
"lo"

julia> s[:4]
'l'

And then this one for fortranics:

julia> for i = 4:1:-1; print(i); end
(blank)

Took me awhile to figure out it should be `4:-1:1`.