| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43673551
这个Hacker News帖子讨论了Fennel,一种编译成Lua的Lisp语法语言。帖子里辩论了Lisp类语言的吸引力,一些人认为其过多的括号语法很繁琐,而另一些人则重视操作S-表达式的便捷性和宏的强大功能。一位评论者甚至开玩笑地反驳了这一论点,来为Lisp类语言辩护。 几位用户分享了他们使用Fennel的积极经验,尤其是在Neovim配置和游戏开发(Love2D、TIC-80、PICO-8)方面,强调了其函数式特性,例如模式匹配。一些人谨慎地指出,对于简单的配置,Fennel可能显得大材小用,并且其工具落后于Lua。人们也担忧其缺乏静态类型支持以及在沙盒Lua环境中可能出现的问题。一些用户建议使用其他类似Lisp的语言,例如Janet、LunarML、Hylang和LFE。总的来说,讨论反映了人们对Fennel优势的热情以及对其可用性和生态系统的务实考虑。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Writing code like this is cumbersome and unnecessarily symbol heavy, and reading it isn't really nice as well.
I'd rather have the language add that extra complexity into the parser than have me stare down these endless paretheses. Parsing something C-like is not that, hard, trust me, I've done it
reply