|
|
|
|
|
by randomdata
845 days ago
|
|
> C’s type system is unsound Along with every other programming language under the sun. A complete type system is not exactly an easy feat – especially if you want it to be usable by people. > We cope with this by referring to some code as “not type safe”. Value constraints are an application of types, so yes, if C/Go had value constraints then violation of those constraints would leave it to not be type safe. But they don't have value constraints. Insofar as what the types can constrain, the safety is preserved. It seems all you are saying is that C (and Go) do not have very advanced type systems. But that shocks nobody. Especially in the case of Go, that was an explicit design decision sung by its creators. You'd have to be living under a rock to not know that. Was there something useful you were trying to add? |
|
Yes, the clarification about value safety, which you’ve done quite well.
Not every language is unrepentantly unsound.
I continue to identify a confusion in this thread between a property of the languages, and a property of particular code, but I have clearly exhausted your patience. thank you.