|
|
Subscribe / Log in / New account

Applying PEP 8

Applying PEP 8

Posted Sep 11, 2021 2:35 UTC (Sat) by NYKevin (subscriber, #129325)
In reply to: Applying PEP 8 by joey
Parent article: Applying PEP 8

I don't see how category theory would help here. The truthiness half of this is only loosely reminiscent of "is this the identity/unit element?" and it doesn't really match up 1:1 with either of those definitions (particularly since you would need to pick out a *single* binary operation for which it is the identity/unit, and such an operation may or may not actually exist for any given type). Meanwhile, equality is (usually, barring weird stuff like NumPy) designed to look like an equivalence relation, which is very much a set theory concept.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds