Re:The Economics of Clean Code
by jaen on Tuesday February 11, 2020 @07:51PM
(#22304663)
That just goes back to the question of what's the desired property.
If the specification is that toString() must return a human-readable string, and eg. be a pure function/not throw exceptions, then most implementations would not violate the LSP.
[ Parent
| on HN ]
There are no comments on this comment yet.