Re: vote on assignments as expressions

"Mark Hahn" <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
"Laurent Dube" <[email protected]> wrote

> Well, fake it then. Make  ".assign!("  an operator in disguise. Only the
> interpreter will know. This may open an interesting door.

The period means to look up an existing attribute and the exclamation mark
means to modify an object in-place and the assignment operation doesn't do
either one of those, even though it fooled both you and me long enough to
post messages.

If you wanted, we could make a keyword operate as "a assign(b)".  This would
be totally honest, but a tad bit weird.  The already suggested "a gets b"
would make more sense and be easier to type.

I personally vote for "a <- b".  It says it all.  It looks ugly in my
outlook express font but looks great in my text editor.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.