On Mon, 4 Apr 2022 at 13:45, David Mertz, Ph.D. <david.me...@gmail.com> wrote: > > While units are certainly useful, I think this is FAR too large to add to > Python syntax. A library like "units" is great, but it really needs to be a > library, and not a small one. > > There are thousands of units in use in sciences, commerce, engineering, > ordinary life, etc. In all of them, it is not uncommon for the same few > letters to represent multiple things, depending on context. > > But as well as the sheer number, what is convertible to what, and in what > context, is very nuanced. >
And that's exactly why I think that the *concept* of units could be added to the language, with some syntax and low-level semantics, but the actual units themselves belong in libraries. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/6K5FEICNKFXZQQL4RYLJB5SK5YOFCUC7/ Code of Conduct: http://python.org/psf/codeofconduct/