logoalt Hacker News

coder543yesterday at 11:45 PM2 repliesview on HN

No. What else could it reasonably be named? Hard to imagine.

The rule has always been intended to cover types that have another word in them but still choose to pointlessly repeat the package name.

`uuid.UUIDGenerator` is a hypothetical example of the anti-pattern that would instead be better named as `uuid.Generator`.


Replies

whateveraccttoday at 2:13 AM

> No. What else could it reasonably be named? Hard to imagine.

Ocaml often just has it be T

so uuid.T

tomjakubowskitoday at 2:16 AM

uuid.Entifier