Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sedro
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
sedro
10y ago
You don't need to specify a return type in scala. In this case the return type is inferred as Option[Long]. You are correct about the exception if the cookie's value can't be parsed as a Long. You might instead write the code
32.
▲
by
sedro
10y ago
I'm with you. I was hooked on mouse gestures after using Opera 12. They came built into the browser, and you could tell. Gestures worked everywhere-- on a new tab, on a loading page, even on the browser window outside a tab. Now I'
33.
▲
by
sedro
10y ago
Maybe, but be aware those are not equivalent (your method will pass extra arguments to RenderChild)