2 ms·
Probably a good choice to not go with a! = 0 which could easily be confused with a != 0 (which would of course throw a compiler error on ‘a’ used but not define
by UncleEntity 5y ago
Probably a good choice to not go with a! = 0 which could easily be confused with a != 0 (which would of course throw a compiler error on ‘a’ used but not defined).
That being said I’ve never had a problem with python’s variable definition and assignment syntax being the same where TFA claims it was a failure. Honestly, I even support the walrus operator for the specific reason it was introduced — heresy, I know…
- renox 5y agoGood point, either a prefix ! or a different letter say could be used. I think that it would be interesting to do like C# does: use this 'mutable letter' to indicate 'in-out' function parameters.