On Sun, Apr 10, 2022 at 2:37 AM Chris Angelico <ros...@gmail.com> wrote:
> That would affect how two objects interact with each other - can you > add meters and miles? Can you treat the electron-volt as a unit of > mass? All these sorts of questions belong to the application, Oh my god, no! I guess we do disagree -- if someone's using one of my packages that make use of unit conversions, I absolutely do not want its behavior to change because of the application developer's different ideas about what units mean. Or even worse, some other third party library changing the behavior of my lib, and the app developer having no idea that they are incompatible. > and > there's no useful way to divide them on module boundaries, much less > other scopes. > That could be true, if you are trying to build it into syntax -- which to me is an argument for not having it a language feature. There's no point trying to make this scoped, just as we don't have > lots of other things scoped (like sys.modules). Shared state across > the application is a *good* thing, not a bad one. > Not in this case, it isn't (IMHO :-; ) -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ 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/EPBBVWXKUITWBYPR2LEG5RR5AKTAPK24/ Code of Conduct: http://python.org/psf/codeofconduct/