You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which follows more closely what other languages do.
I had also proposed using where, e.g.
x^2for x =1:100where x %3==0# or,
x^2where x %3==0for x =1:100
This, at least in my mind, makes the filtering aspect a little clearer than if, since if looks like it should be modifying the computation rather than the iterator. (Which perhaps is a little narrow-minded of me.)
Thoughts?
The text was updated successfully, but these errors were encountered:
This started coming up in #16389 but it's a little off topic, so perhaps we should branch this discussion out into a separate issue.
@StefanKarpinski mentioned the nice, familiar syntax
which follows more closely what other languages do.
I had also proposed using
where
, e.g.This, at least in my mind, makes the filtering aspect a little clearer than
if
, sinceif
looks like it should be modifying the computation rather than the iterator. (Which perhaps is a little narrow-minded of me.)Thoughts?
The text was updated successfully, but these errors were encountered: