2 ms·
> Language type checking misses the point. The types I want to check, and the extent I want to check them, are in the spec files. It's worth incorporating a wa
by lmm 9y ago
> Language type checking misses the point. The types I want to check, and the extent I want to check them, are in the spec files.
It's worth incorporating a way to express these things directly into the language proper. That way all your tools will understand them (e.g. automated refactoring will already know what needs to be updated) and you can talk about them in the language.
> Go type inference, for example, is deeply primitive and an awful lot of Go code seems to spend its time implementing duck typing via work arounds.
Yeah, Go is the exception. It's profoundly and proudly ignorant of 65 years of language design progress. If Go were the only language type system I had access to I'd think language type checking was pointless too.