can you tell that I used perl a lot .
julia> (x == 2) && y=12
clash with anything? julia does not have the less binding “and” and “or” keywords afaik. I would love them, too.
I think the user meaning for the ‘&&’ construct is amply clear, but julia of course complains (correctly) about an invalid assignment location. yes, special cases are ugly and confusing and should be created only very rarely.
currently I use
julia> (x==2) && ( y=2 )
but it looks a little too similar to
(x==2) && (y==2) to me. I know that special cases are not particularly desirable. ‘and’ and ‘or’ would be better.
not important, but I think convenient.