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

The python equivalent would be:

>>> s = "hello"
>>> s[3:]
'lo'
>>> s[:3]
'hel'

In python `s[:3]` is equivalent to `s[0:3]`, whereas in julia `s[:4]` converts to `s[4]`, i.e., a single char instead of a slice.

The second example is surprising because fortran do loops are written:

do i = ,,
...
end

AFAIK, matlab is the only language to have adopted `::`.