4 ms·
"Instead of being in your way like in C, C++ or Java, the type system is here to help you." I'd still say the type system is there to help you in C, C++, and J
by dllthomas 13y ago
"Instead of being in your way like in C, C++ or Java, the type system is here to help you."
I'd still say the type system is there to help you in C, C++, and Java, it just doesn't do nearly as good a job of it, and winds up in your way more often because it's less expressive.
- tieTYT 13y agoI'd go as far as to say it doesn't get in your way at all except for verbosity, I just wish it were better and could do more. I'd love for the type system to prevent null pointers. I'm only speaking from Java experience here.
- danieldk 13y agoIf you are using Java and the JVM: Kotlin[1], a JVM language that attempts to improve on Java, has non-nullable references. http://kotlin.jetbrains.org/ http://kotlin.jetbrains.org/
- danieldk 13y agoI'd still say the type system is there to help you in C, C++, and Java, it just doesn't do nearly as good a job of it, Are you sure? :) Couldn't match type `b0' with `Step Builder IO a' because type variable `a' would escape its scope This (rigid, skolem) type variable is bound by a type expected by the context: Enumerator Builder IO a The following variables have types that mention b0 [...] I do love Haskell :) and usually the type system is there to help you.