Re:The type system is a programmer's best friend
by hither_shores on Saturday November 05, 2022 @04:11PM
(#33485148)
newtype ArbitrarilyLabeled x = ArbitrarilyLabeled x
forgetLabel :: ArbitrarilyLabeled x -> x
forgetLabel (ArbitrarilyLabeled x) = x
What's the "global meaning" of `ArbitrarilyLabeled`? What control has `forgetLabel` lost?
Names are just labels attached to an entity for the purpose of identification and readability, they don't impose meaning.