Scala, Rust
Exploration
Quick summary of recently reviewed concepts:
| Concept | Scala 3 | Rust |
|----------------+----------------------------+-------------------------------|
| Type classes | given/using, derives | Traits + blanket impls |
| HKTs | F[_] natively | Not directly (GATs partial) |
| Error handling | Either, Validated, EitherT | Result, ?, thiserror/anyhow |
| Zero-cost types| opaque type | newtypes, zero-sized types |
| Closures | Function1, SAM types | Fn/FnMut/FnOnce |Other interesting observations:










