6 ms·
Well names are a bit of a bad example. Entire fields of study were spawned from that example [1]. A better example might be a credit card, which always has a nu
by greenleafjacob 12y ago
Well names are a bit of a bad example. Entire fields of study were spawned from that example [1]. A better example might be a credit card, which always has a number and a cardholder. Things get interesting when you might formalize:
* Expiration (do all credit cards expire? Is expiration necessarily a date, or is it a predicate?)
* Cardholder - referent might be another entity in your system
* Is the card number encrypted? How do you represent encryption?
[1]: https://en.wikipedia.org/wiki/On_Denoting https://en.wikipedia.org/wiki/On_Denoting
- Retra 12y agoThese kind of issues lead to the development of aspect-oriented programming, which is an attempt to better match our intuition about how things in reality behave in a compositional manner.