3 ms·
They're not in the same playground. Scala has a far more advanced type system - more close in power to Typescript or Rust than Java - and capabilities like comp
by dtech 2y ago
They're not in the same playground. Scala has a far more advanced type system - more close in power to Typescript or Rust than Java - and capabilities like compile time metaprogramming which aren't on the Java roadmap. Or more mundane things like immutable collections or a copy method for "record" classes.
Whether that's an advantage in day to day business development is a different question.
- pas 2y agoJust as context for anyone curious: Scala is even more "powerful" than TS or Rust as it has real HKT (higher-kinded types), and for example Effect.TS needs to emulate/simulate it. https://github.com/Effect-TS/effect/blob/main/packages/effect/src/HKT.ts https://github.com/Effect-TS/effect/blob/main/packages/effec...