Go is not statically typed, really. Consider using Haskell, if not Agda.
news.ycombinator.com/item?id=34230884Posted Jan 3, 2023, 6:27 PM UTC
Posted Jan 3, 2023, 6:27 PM UTC
This, but unironically.
[deleted]
Go is statically typed but damn if it isn't the worst type-system I've seen since Java 1.4
The key point here is⦠Java is for smarter people
Can confirm:
Integer a = 127;
Integer b = 127;
System.out.println(a == b); // true
Integer c = 128;
Integer d = 128;
System.out.println(c == d); // false
It really takes a phd in compsci to fully grasp such level of idiotic "clever" language design.
Clearly you're unjerking, Mr. f-berasategui
Am I?
Somehow JVM designers decided to make an exception for numbers less than 128 for optimization, whether it's the right call or not I don't know.
Should be for numbers between 1024 and 2048 imo
Lisp is not functional, really. Consider using Haskell, if not Agda.
half-correct
As in, Haskell is half way between babies first type system of C++ and statically typed Agda.
Oof size large
lol 0.1xer recommends Agda rather than Idris.
I'm more of a cock man myself, sorry coq! I meant coq π
"Took endeavor" was right there.
You expect me to read another 7 words to get to that? π€
Broke: C is statically typed because you literally write the type declarations
Woke: Go is not statically typed because lol no sum types and nil inhabits everything
Bespoke: Python is statically (uni-)typed because preservation+progress
In Haskell, every useful value is a monad, and a monad is a burrito. Therefore in Haskell every value is of type
Burrito, and Haskell is a dynamically-typed (uni-typed) language.Go is just a mode of use of Modernized Algol.
Weird way to say neutered.
PHP is stringly typed and thus superior to all challengers