News for hackers. Stuff that matters.
Re:Names are not type safety (2020) by ashton314 on Monday August 04, 2025 @02:07AM (#44782542)
What type system are you thinking about? Is there a specific language you have in mind? Haskell is structural—it emphasizes pattern matching on type variants and whatnot—but it wouldn’t confuse two different structs.
Re:Names are not type safety (2020) by mrkeen on Monday August 04, 2025 @04:12AM (#44783181)
Haskell is nominal. In this context structural typing is the ability to confuse two different structs.