Re:Compile-time safety for enumerations in Go
by throwaway46281 on Saturday September 30, 2023 @09:18AM
(#37715157)
To me it's pretty clear that safety is a spectrum (e.g. we give cars safety ratings), and therefore so is type safety.
Is "type safety" something you saw defined in a PL book or something, which has a more rigid definition to you?
If we're talking compile-time, then: yes, absolutely!
Type hinting doesn't provide type safety, because type safety isn't a spectrum.