Re: Re: vote on assignments as expressions
Paul Prescod <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Mark Hahn wrote: >... > BTW: I Just realized there is no clean way to stop someone from using "a := > b" on a line by itself since an expression is allowed on a line by itself. > We will strongly suggest they not do this. This is actually an argument to > use choice e ( ":=" ), since it looks the most like a normal assignment and > will cause the least readability problem if they do this. I'm in favour of the feature and "a := b". I almost think I would purposely use it everywhere, for two reasons: 1) consistency between different contexts 2) because it has always irritated me that programming languages use "==" to mean what mathematicians call "=" and "=" to mean something that mathematicians rarely do. Paul Prescod