Scala 3 binary compatibility issue
as i am moving to help my organization adopt scala 3, i am trying to map out the potential chanllenge to look after.
Scala 3 main method and default values
In Scala 3 I can specify a main method which gets one parameter like this:
How to create an Array[T | Null] where T is a type parameter with `AnyRef` as upper bound
I need to create a temporary Array[T | Null]
where T
is a type parameter with AnyRef
as upper bound.
Given the arrays implementation will use an Array[AnyRef]
after erasure for whatever T
is, why should I relay on a ClassTag
?
How to filter out null of a List[T | Null] without using asInstanceOf nor ClassTag
The intention of the following function is to remove null values