MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/22lj4a/theo_de_raadt_openssl_has_exploit_mitigation/cgp52la/?context=3
r/programming • u/[deleted]
[deleted] — view deleted post
661 comments sorted by
View all comments
Show parent comment
1
Being able to do it is just a side effect of assignments also returning the value of the assignment, which allows code such as this:
a = b = c = d;
Outside of that, I've only ever seen it used within other constructs as convenient shorthand; never as something that had to be done that way.
View all comments
Show parent comment
1
u/BonzaiThePenguin Apr 10 '14
Being able to do it is just a side effect of assignments also returning the value of the assignment, which allows code such as this:
Outside of that, I've only ever seen it used within other constructs as convenient shorthand; never as something that had to be done that way.