lol, thanks for the python 3 update! I need to get using that one of these days ...
Yeah I didn't see your comment as very critical, I just wanted to say we can all coexist in general :) I find the holy wars on basic stuff like this always a bit mind blowing. Julia continually impresses me with the care in which syntax and semantics are added/changed in the language. My own complaints about syntax when I was first starting were carefully explained to me by some of the core devs, when maybe a studded paddle would have been more appropriate... On Tuesday, April 5, 2016 at 7:01:00 AM UTC-7, DNF wrote: > > > On Tuesday, April 5, 2016 at 3:36:09 PM UTC+2, Gabriel Gellner wrote: >> >> you can do the python example as: >> >> a[[1, 4] + range(7, 17, 2)] >> (ignoring the issues that this is not the same range as julia since >> python uses 0-based indices ...) >> > > Thanks. I'm getting an error, though: > > TypeError: can only concatenate list (not "range") to list > > I assume you are using Python 2.7, while I'm at 3.5. But still, this > helps. It seems I can do: > > a[[1, 4] + list(range(7, 17, 2))] > > which is a real improvement. > > As to the overall topic I don't think it is fair to have to poo-poo python >> to also feel that julia does it well. I really like both. >> > > I really don't like poo-pooing of python, but I think it's a response to > some pretty unreasonable criticism from the OP. In my newbie opinion, array > indexing is an area where Julia shines, much more so than NumPy. >