Hasty Briefsbeta

Bilingual

Why Fennel?

a year ago
  • #lua
  • #fennel
  • #programming
  • Fennel is a programming language that runs on the Lua runtime.
  • Lua is powerful, simple, and designed for embedding in other programs.
  • Fennel improves Lua by addressing common pitfalls while maintaining compatibility.
  • Fennel uses Lisp-like syntax, which is more regular and reduces complexity.
  • Fennel prevents accidental global variable usage and encourages cleaner code.
  • Fennel introduces better syntax for tables (arrays and dictionaries).
  • Fennel separates numeric loops from iterator-based loops with distinct keywords.
  • Fennel includes arity checks for functions, unlike Lua.
  • Fennel supports destructuring, pattern matching, and a macro system.
  • Fennel's macro system allows extending the language with new syntax.