#scala-3

[ follow ]
Alvinalexander
1 week ago
Scala

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 ]
Alvinalexander
6 days ago
Scala

ZIO 2: Processing ZIO command line arguments

Scala 3 and ZIO 2 example demonstrates processing command-line arguments in a ZIO 2 application. [ more ]
Inner-product
2 weeks ago
Scala

Direct-style Effects Explained

Direct-style effects aim to provide the benefits of monads without using monads in programming languages. [ more ]
Alvinalexander
1 month ago
Scala

My free Scala and FP online video training courses

Ziverge sponsored and enabled free video training courses on Scala 3 without ads or paywalls. [ more ]
Alvinalexander
1 month ago
Scala

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 ]
Alvinalexander
1 month ago
Scala

Scala: How do I perform pattern matching on strings and regular expressions in a match expression?

Pattern matching in Scala can be performed on regular expression strings in a match expression.
Regular expressions can be defined as a Regex type and used for pattern matching in Scala. [ more ]
Alvinalexander
1 week ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
Scala-lang
2 months ago
Scala

Scala 3 Roadmap for 2024 Published

Scala 3 team plans for 2024 detailed in blog post
Focus on improving build times and IDE support [ more ]
Medium
3 months ago
Scala

Scala 3 Data Transformation Library: Automating Data Transformations with ducktape

Working with data transformations is essential but can be cumbersome and prone to errors.
Ducktape, a Scala 3 micro-library, simplifies data model conversions, freeing developers to focus on innovation. [ more ]
Medium
3 months ago
Scala

The Algebra of Pretty Printing

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 ]
jducoeur.medium.com
4 months ago
Scala

Cool new experiments in Type Classes

Scala 3 is now in the refinement phase, focusing on improving the details.
There are major changes proposed to the surface syntax of type classes in Scala 3 for better expressivity. [ more ]
Medium
4 months ago
Scala

Seamless Integration: Step-by-Step Installation of Scala 3 on RHEL 9 Using Terminal

Scala 3 is the latest version of the Scala programming language, which offers several new features and improvements over its predecessor.
[ Load more ]