[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Make type respect __name and add rawtype
- From: "frank@..." <frank@...>
- Date: Thu, 24 Dec 2020 17:23:05 -0500
The Principle of Least Astonishment leads one to the position that type() ought not change in a way that is not backwardly compatible. One could make “newtype()” or, perhaps, have type() return two values (one of the existing values plus, optionally, the __name field from the meta table)
That said, I do like the idea in principle & have done hacks similar to those described
Frank