On 31 December 2013 13:48, John Myles White <[email protected]> wrote:
> I think we have profoundly different aesthetics as programmers. Languages 
> have tons of features that one shouldn’t use: the ability to write buggy code 
> being one trivially obvious example.

Actually, I think that is a terrible example. Not writing buggy code
is neither a style issue, nor a language feature.


> To my knowledge, Julia has for x = 1:10 exactly because it tries to seem 
> similar to Matlab. Originally, it only had that, but the for x in y idiom was 
> created at some point without removing the Matlabism to maintain Matlab 
> compatibility.


I don't see that as a Matlabism. Fortran also uses an equal sign for
this kind of loop. I think you could just as well say that using "in"
is a Pythonism. Personally, I like the convention of using an equal
sign for numerical ranges and "in" for non-numeric iterators.


-- 
When an engineer says that something can't be done, it's a code phrase
that means it's not fun to do.

Reply via email to