News for hackers. Stuff that matters.
Re:Java 21 VirtualThreads vs. Clojure Lazy Seqs (from Clojur... by kaba0 on Saturday October 07, 2023 @03:41AM (#37799827)
Typescript’s type system is deliberately not sound though.

In general, there is no type inference available for OOP type-hierarchies as opposed to a more Haskell-like type system, where Hindley-Milner works

Re:Java 21 VirtualThreads vs. Clojure Lazy Seqs (from Clojur... by riku_iki on Saturday October 07, 2023 @02:39PM (#37804332)
I don't have strong knowledge in types theory, but why

class C { a: int = 0; }

can't be replaced with

class C { a = 0; }

? what issues it brings?..

Re:Java 21 VirtualThreads vs. Clojure Lazy Seqs (from Clojur... by kaba0 on Saturday October 07, 2023 @07:10PM (#37806286)
That can. But what about a field that is not initialized there?
Re:Java 21 VirtualThreads vs. Clojure Lazy Seqs (from Clojur... by riku_iki on Saturday October 07, 2023 @07:23PM (#37806374)
obviously you would need to provide type.