DORSETRIGS
Home

scala-3 (10 post)


posts by category not found!

Scala 3: why does `inline` fix stack overflow

Scala 3 Unraveling the Mystery of inline and Stack Overflow Errors Ever encountered a dreaded stack overflow error in your Scala code Its a common problem espec

2 min read 05-10-2024 39
Scala 3: why does `inline` fix stack overflow
Scala 3: why does `inline` fix stack overflow

Add constructor to class with extensions possible?

Adding a Constructor to a Class with Extensions Is It Possible When working with classes in object oriented programming you may find yourself needing to add con

2 min read 30-09-2024 45
Add constructor to class with extensions possible?
Add constructor to class with extensions possible?

Scala initialization order object vs. val

Understanding Initialization Order in Scala Objects vs Values When programming in Scala one often encounters the nuances of initialization order especially when

2 min read 16-09-2024 66
Scala initialization order object vs. val
Scala initialization order object vs. val

Scala 2 to Scala 3: Instantiating a trait no longer recognises new methods

The Mystery of Missing Methods Migrating from Scala 2 to Scala 3 with Traits Migrating from Scala 2 to Scala 3 can be a rewarding experience but it also comes w

2 min read 13-09-2024 48
Scala 2 to Scala 3: Instantiating a trait no longer recognises new methods
Scala 2 to Scala 3: Instantiating a trait no longer recognises new methods

Compilation Error: Instance not found: Conversion[models.Errorcode, _ <: Product] on Scala 3 Playframework

Decoding the Instance not found Conversion models Error Code Product Error in Scala 3 Play Framework Migrating from Scala 2 to Scala 3 often brings exciting new

2 min read 02-09-2024 61
Compilation Error: Instance not found: Conversion[models.Errorcode, _ <: Product] on Scala 3 Playframework
Compilation Error: Instance not found: Conversion[models.Errorcode, _ <: Product] on Scala 3 Playframework

Scala 3 macros: "dynamically" instantiating singleton objects at compile-time

Dynamically Instantiating Singleton Objects at Compile Time in Scala 3 Macros This article explores a powerful technique in Scala 3 macros dynamically instantia

3 min read 01-09-2024 58
Scala 3 macros: "dynamically" instantiating singleton objects at compile-time
Scala 3 macros: "dynamically" instantiating singleton objects at compile-time

Scala 3 binary compatibility issue

Understanding Scala 3 Binary Compatibility Issues As organizations transition to newer versions of programming languages compatibility concerns often arise part

2 min read 31-08-2024 47
Scala 3 binary compatibility issue
Scala 3 binary compatibility issue

Test/compile not finding lib/jar with Scala 3 (but 2.13 works)

Troubleshooting Scala 3 Compilation Issues Why Your Jars Are Missing This article delves into a common issue faced by Scala developers using the sbt molecule pl

2 min read 31-08-2024 54
Test/compile not finding lib/jar with Scala 3 (but 2.13 works)
Test/compile not finding lib/jar with Scala 3 (but 2.13 works)

How to provide a generic Circe Decoder for a Scala 3 Enum Values?

A Generic Circe Decoder for Scala 3 Enum Values Streamlining Your Code When working with Scala 3 enums and Circe for JSON serialization and deserialization you

2 min read 30-08-2024 53
How to provide a generic Circe Decoder for a Scala 3 Enum Values?
How to provide a generic Circe Decoder for a Scala 3 Enum Values?

Scala Spark Dataframe creation from Seq of tuples doesn't work in Scala 3, but does in Scala 2

Scala 3 and Spark Data Frames Navigating Implicit Resolution Headaches In the world of big data and Scala Spark Data Frames are a cornerstone Creating Data Fram

2 min read 29-08-2024 55
Scala Spark Dataframe creation from Seq of tuples doesn't work in Scala 3, but does in Scala 2
Scala Spark Dataframe creation from Seq of tuples doesn't work in Scala 3, but does in Scala 2