Comment

Comment by arunix

On the front page, there is an example about optional typing, but it's not very clear how the typing is coming in:

  def fib(x) { x <= 2 ? 1 : fib(x - 1) + fib(x - 2) }
  
  println "40th fibonacci number is ${fib(40)}"
parent arunix 2 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton