Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamwbarr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Statistical Model Suggests Stormy Daniels Payoff Came from Trump Campaign
(medium.com)
1 points
by
adamwbarr
9y ago
|
0 comments
2.
▲
Wall Street Cop Uses Algos to See Billions in Errant Bond Trades
(bloomberg.com)
3 points
by
adamwbarr
11y ago
|
0 comments
3.
▲
by
adamwbarr
12y ago
I agree that the design is a result of trading off the desire to do away with nulls vs retaining Java interoperability. Preventing (at compile time) only Options from being null is surely impossible when casting/reflection are availabl
4.
▲
by
adamwbarr
12y ago
Ok fair point re it being contrived! Although (having just re-read it), the original post's complaint was actually that: > the compiler (afaik) doesn't prevent you from setting an Optional field to null ie scala> val opt
5.
▲
by
adamwbarr
12y ago
scala> val x = Some(null) x: Some[Null] = Some(null)