3 ms·
Elegant for who? Adding a new syntax that doesn't exist in any language. vs. Using sensible default parameters. ----------------- An argument for why my su
by such_a_casual 11y ago
Elegant for who?
Adding a new syntax that doesn't exist in any language.
vs.
Using sensible default parameters.
-----------------
An argument for why my suggestion would be bad:
https://www.python.org/dev/peps/pep-0498/#no-use-of-globals-or-locals https://www.python.org/dev/peps/pep-0498/#no-use-of-globals-...
- mixmastamyk 11y ago> Adding a new syntax that doesn't exist in any language. Not true, look into the new interpolation features in C#, Scala, JS, Swift, nim, etc.
- klibertp 11y ago> Adding a new syntax that doesn't exist in any language. Please, even JavaScript (ES6) got itself something similar; implicit string interpolation is not that rare.