What is the benefit of having the assignment operator return a value?

Published: 18/09/2019
What is the benefit of having the assignment operator return a value?
Source: SOFTWAREENGINEERING.STACKEXCHANGE.COM

I'm developing a language which I intend to replace both Javascript and PHP. (I can't see any problem with this. It's not like either of these languages have a large install base.) One of the things I wanted to change was to turn the assignment operator into an assignment command, removing the ability to make use of the returned value. x=1; /* Assignment. */ if (x==1) {} /* Comparison. */ x==1;

Read more
Related news
Comment
FACEBOOK