Live data from Hacker News

Lisk — Lisp and Haskell

chrisdone.com

1–10 of 30 posts

Re: Lisk — Lisp and Haskell

#3
Not tackling pattern matching is a pretty big deficiency. Otherwise, it seems interesting, and I wonder if

  :i-o
would really be easier to type than

  IO
for most use cases.

Re: Lisk — Lisp and Haskell

#8
post #7
post #6

Earlier quoted context omitted.

works with both - try it on paper

I did - with 2: fib(2) = fib(2-1) + fib(2-2) fib(2) = fib(1) + fib(0) fib(2) = 1 + 1 (rather than 1 + 0) No?

It's definitely wrong - just ran it in python to check in case I was missing something!

Re: Lisk — Lisp and Haskell

#10
post #8
post #7

Earlier quoted context omitted.

I did - with 2: fib(2) = fib(2-1) + fib(2-2) fib(2) = fib(1) + fib(0) fib(2) = 1 + 1 (rather than 1 + 0) No?

It's definitely wrong - just ran it in python to check in case I was missing something!

I don't think it's explicitly wrong; I've seen both fib(0) = 1 and fib(0) = 0 before. Wikipedia shows:

   By definition, the first two Fibonacci numbers are 0 
   and 1, and each subsequent number is the sum of the
   previous two. Some sources omit the initial 0, instead 
   beginning the sequence with two 1s.
Post reply on HN