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
The in-place backwards pipe operators are a little confusing to me, so I was wondering if other newcomers would benefit from some additional documentation on them.
an example of how you might use these operators could help aid in understanding
how the operators are written might be made explicit, at least I found myself wondering whether it was <|= or =<| (though I quickly figured it out, and the second form wouldn't match any of the other in-place operators in coconut/python anyway)
It might be helpful to list out all the in-place versions, since I think some of them are not mentioned in the documentation at all.
Counterpoint, perhaps if these are infrequently used, adding detailed information on them would be confusing to newcomers. But the language documentation describes itself as a reference/specification, so I think it makes sense to include them.
The text was updated successfully, but these errors were encountered:
This might just be because I'm new to them, but another potential source of confusion: can you use in-place pipes in a pipeline at all? Would that make sense?
All in-place operators behave as they do in Python, such that a <op>= b is roughly equivalent to a = a <op> b. Assigning with an in-place operator is a statement, not an expression, so you can't use it inside of a pipeline (in the same way you can't use = in the middle of expressions; that's why := exists).
The in-place backwards pipe operators are a little confusing to me, so I was wondering if other newcomers would benefit from some additional documentation on them.
<|=
or=<|
(though I quickly figured it out, and the second form wouldn't match any of the other in-place operators in coconut/python anyway)Counterpoint, perhaps if these are infrequently used, adding detailed information on them would be confusing to newcomers. But the language documentation describes itself as a reference/specification, so I think it makes sense to include them.
The text was updated successfully, but these errors were encountered: