[Python-ideas] syntax for set

Mike Meyer mwm-keyword-python.b4bdba at mired.org
Wed Nov 24 11:05:17 CET 2010


"Masklinn" <masklinn at masklinn.net> wrote:

>As an alternative, I would modestly propose banning integer literals
>altogether in favor of english-spelled constants: `ONE` can hardly be
>confused with the letter `l`, and having to write `FIVE HUNDRED
>FORTY-ONE BILLION FOUR HUNDRED FIFTY ONE MILLION NINE HUNDRED EIGHTY
>ONE THOUSAND NINE HUNDRED TWENTY ONE` rather than 514451981921 would
>surely reduce the usage of redundant magic numbers in the code.

Given that roman numeral literals have already been rejected, I'd like to propose them as an alternative alternative.
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



More information about the Python-ideas mailing list