Scala 3: Package objeccts are deprecated, how to create types in a top-level package and use them everywhere in your project
In Scala 3, package objects are deprecated, impacting code accessibility across sub-packages. A workaround is to define common types in a 'near' top-level package for import. [ more ]
Scala 3 Opaque Types: When to use, examples, benefits
Opaque types in Scala 3 offer encapsulation, type safety, abstraction, and semantic clarity.
They help create new data types with controlled access to representation, suitable for scenarios needing clear interfaces and meaningful names. [ more ]
ToyLang is a custom language with features such as integer literals, variable support, binary arithmetic operators, conditional statements, and nested scopes.
The article discusses the design of a pretty printer for ToyLang using Scala 3 and Abstract Syntax Trees (AST). [ more ]