|
|
|
|
|
by hepta
3159 days ago
|
|
Maybe we have to dig into the specifics: there's a lot of things that can be done with Name, regardless of where the name belongs, is that what you mean?
If so, most typed languages let you say that Person can be a thing with a Name. I don't have Clojure experience so we might be talking past each other here. |
|
First-class properties are strong enough semantics and bundling them together in an ADT is almost always introducing coupling and rigidity with no real benefit.
Why do we need the Person class? Why do we need to taxonomize like that? The answer is we don't. All the Person class brings to the table is straight-jacketing and a false sense of order and security.