Scala 3.0
github.com
Scala 3.0
1–10 of 292 posts
Re: Scala 3.0
#2Re: Scala 3.0
#3Re: Scala 3.0
#4Re: Scala 3.0
#5I wonder why it's not on the official site [1]. [1] https://www.scala-lang.org/
Re: Scala 3.0
#6I get paid to write TypeScript, it has come a long way to a relatively enjoyable experience compared to how expressive i feel with Scala. Looking forward to giving Scala 3 a spin to learn whats new
val scala: "Scala" = "Scala"
const typescript: "Typescript" = "Typescript"
"Scala" | "Typescript"
Re: Scala 3.0
#7Re: Scala 3.0
#8Re: Scala 3.0
#9Re: Scala 3.0
#10I get paid to write TypeScript, it has come a long way to a relatively enjoyable experience compared to how expressive i feel with Scala. Looking forward to giving Scala 3 a spin to learn whats new
I was looking at dotty/scala 3 earlier in the year and I was quite surprised to see familiar friends from Typescript in the form of literal types and union types. val scala: "Scala" = "Scala" const typescript: "Typescript" = "Typescript" "Scala" | "Typescript"
In the example above, the created type "Scala" is distinct from a type Scala, correct?
I did some quick poking around for Scala literal types, but I found stuff like https://github.com/jeremyrsmith/literal-types , which don't look like the example above.