python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Scala 3 Explicit Nulls flag makes String operations quite unusable
When using the new Scala 3's flag -Yexplicit-nulls, every Java code which doesn't have explicit non-null annotations is treated as nullable, thus every Java method not returning a primitive type T eff...

Ota Hauptmann
Votes: 0
Answers: 2
How can a object be child of both AnyVal and AnyRef in Scala3.x
Why does all of these return true, while for AnyVal returns error on scala 2.x
class Demo
val d = new Demo
d.isInstanceOf[Any]
-> true
d.isInstanceOf[AnyRef]
-> true
d.isInstanceOf[AnyVal]
-&...
Guru
Votes: 0
Answers: 0
Implementing a multithreading function for running "foreach, map and reduce" parallel
I am quite new to Scala but I am learning about Threads and Multithreading.
As the title says, I am trying to implement a way to divide the problem onto different threads of variable count.
We are giv...

Tryable
Votes: 0
Answers: 1
Implementing functions returning match-based dependent types in scala 3
I'm experimenting with describing computations using functional composition in Scala 3. The goal is to be able to write something like this:
def doThat(v: Val[String]): Val[String] =
v.maybeMap((s) ...
Igor
Votes: 0
Answers: 1