Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Scala vs Go. Parent comment
If the author is concerned, the way to express this to be more expressive could be something like this:
val uidOpt: Option[Long] = request.cookies.get("uid") map { case Some(uidStr) if uidStr.toLong > 0 => Some(uidStr.toLong) case _ => None }
There are no comments on this comment yet.
If the author is concerned, the way to express this to be more expressive could be something like this: