Why Fennel?
41–50 of 106 posts
Re: Why Fennel?
#42I moved my Neovim config to fennel and haven't look back. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...
Can nvim read it natively or do you need to transpile it?
Re: Why Fennel?
#43There are quite many languages compiling to Lua (or LuaJIT). Fennel is just one of them. See e.g. https://github.com/hengestone/lua-languages .
Re: Why Fennel?
#44Earlier quoted context omitted.
My memory of this is hazy, in part because I wasn't a C programmer in those days, but ISTR C used to do this too. I think prototypes were added (and required) only by the time ANSI got involved. Maybe some other OF can confirm/contradict?
Fun fact: in C, if you have a signature like “int foo()”, it means any number of arguments can be passed (vs “int foo(void)” which means no args).
Re: Why Fennel?
#45I didn't realize lua was a proper language until I learned that's what factorio uses for its mods.
Re: Why Fennel?
#46I moved my Neovim config to fennel and haven't look back. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...
I’ve been thinking about doing this, but then reminding myself that this is not a wise use of my time lol. However, this looks pretty nice. I might have to do it. Thanks for sharing your setup, I’ll be stealing some ideas.
Re: Why Fennel?
#47Re: Why Fennel?
#48Earlier quoted context omitted.
Can nvim read it natively or do you need to transpile it?
You don't need to transpile it if you use https://github.com/Olical/nfnl
Re: Why Fennel?
#49I didn't realize lua was a proper language until I learned that's what factorio uses for its mods.
It's a very common language to embed in video games as a modding and configuration tool.
Tools have their strengths. Use them for that. Don't try to drive a nail with a screwdriver.
Re: Why Fennel?
#50There are quite many languages compiling to Lua (or LuaJIT). Fennel is just one of them. See e.g. https://github.com/hengestone/lua-languages .
What makes Fennel a bit different is that it is a Lisp inspired by Clojure. If for any reason neither of these ever interested you, then, yes, Fennel would not feel any different to you.