Hacker News new | ask | show | jobs
by paulhodge 5177 days ago
Definitely a good point and I'll make that change. I was hesitating to only use -- because I thought it might be unfamiliar to some. But it works great for Lua & Haskell!

For variable scoping, if you use the same name inside a "for" or "if" block then it'll assign that name in the outer scope. A function however can't assign to names outside of the function - each function needs to explicitly declare its inputs & outputs. There's some holes in the current design, so adding a "val" keyword is the current plan.