Comment

Comment by simcop2387

I'm curious how the parsing must work because I can't unambiguously see how this line is parsed

fib x ← fib x − 1 + fib x − 2

Why is that parsed to behave correctly like

fib x ← fib (x − 1) + fib (x − 2)

And not,

fib x ← fib( x − 1 + fib ( x − 2 ))

Or even this, though it wouldn't produce a sane program

fib x ← fib ( x ) − 1 + fib ( x ) − 2

parent simcop2387 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton