What is Nostr?
Graydon Hoare /
npub1ppy…c0y4
2024-12-27 19:37:34

Graydon Hoare on Nostr: Re last boost: my spicy take is PLs should probably not ship with both of (a) ...

Re last boost: my spicy take is PLs should probably not ship with both of (a) subtyping and (b) first class function types or user-defined generic container types. You can have second class and built in versions of the latter, or omit the former, but otherwise you are probably past the limits of comprehensibility if you are trying to surface parameter variance in the user visible type sublanguage.

(Though if you try anyway, I do like Kotlin’s approach!)
Author Public Key
npub1ppyeezwfyr0pjgtgy3gvsxfgghp426yzalg4cxklv8xvfyr06lssp6c0y4