Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sc22
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
sc22
2y ago
You _can_ write in Java that very interface you claimed could not be written. interface ThrowingRunnable<E extends Throwable> { void run() throws E; } Only, hardly anybody writes it that way, so people forget that it&#
2.
▲
by
sc22
3y ago
Scala 3 has enums, which can also serve as ADts: https://docs.scala-lang.org/scala3/reference/enums/enums.htm...