Re:Ruby adds experimental support for Rightward assignments
by lioeters on Friday September 04, 2020 @03:59PM
(#24378377)
I considered such an assignment operator for a little language I was developing, but there was an ambiguity between this:
and this:
Since everything was an expression in the language, the latter would evaluate to a boolean. In the end I just went with "=" for assignment, and "==" for equality.
[ Parent
| on HN ]
There are no comments on this comment yet.