by TazeTSchnitzel · 14y ago · 0 comments
However, I'll agree that it would be disingenuous to say it's not a little peculiar, and surprising to see the source for it :)
In all seriousness, though, if I really wanted a functional implementation, I wouldn't be using Python. It's more just nice to know that I can create an object that's immutable and which functions more or less like a CLOS object, so that I can think in that mindset instead. Also, I believe it doesn't come with all of the hidden functions that it would otherwise.
In the end, if I really cared, I'd actually write a wrapper around the type() function.