Re:Are dynamic languages going to replace static languages? ...
by lkitching on Wednesday August 04, 2021 @09:06AM
(#28060557)
The type represents a set of properties about the inhabiting values so if you have an opaque value you don't want others to inspect, wrapping it in such a type makes that explicit throughout the rest of the program. That information is not available if every value in your type has the same type. Presumably though you will actually attempt to do something with the contained value at some point so you must have some expectation about what it is.
[ Parent
| on HN ]
There are no comments on this comment yet.