Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It works if you run both expressions from file. There's a tutorial page that explains why this doesn't work in REPL. See "Locals are per-chunk" here: https://github.com/bakpakin/Fennel/blob/master/tutorial.md#g...


Thanks, that makes sense. I will also try making it a global value assuming global works in the online REPL.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: