I'd certainly be interested in hearing about how this has worked with C++, but this would certainly make scientific code less easy to misuse due to unclear units.

-Ryan Birmingham

On 28 October 2016 at 16:45, Sven R. Kunze <srkunze@mail.de> wrote:
On 28.10.2016 22:06, MRAB wrote:
On 2016-08-26 13:47, Steven D'Aprano wrote:
Ken has made what I consider a very reasonable suggestion, to introduce
SI prefixes to Python syntax for numbers. For example, typing 1K will be
equivalent to 1000.

Just for the record, this is what you can now do in C++:

User-Defined Literals

Nice to hear. :)

They now have 5 years of experience with that. Are there any surveys, experience reports, etc.?


Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/