r/functionalprogramming • u/RagingBass2020 • Mar 19 '24
Question Embeddable functional programming languages
tl;dr at the bottom.
I have been doing some game programming on the side and Lua is used a lot as a programming language for scripting. It's understandable, in a way, because it's super easy to have the language being embedded into another.
I've did a lot of programming in Haskell during my university years, studying and working as a researcher (in formal methods) and I like Haskell's approach to programming although the use of Monads is probably a little too much for what I want.
Personally, I'm also not the biggest fan of Lisp-like syntax, either. Don't shoot me, please.
My question is the following: is there any easily embeddable functional programming language that could be used for scripting, to be used instead of Lua?
Additional comments/tl;dr:
- Easily embedabble/callable from C (or other languages)
- Not a lisp, please.
- Can have side effects (more like ML, less like Haskel)
View all comments
Show parent comment
2
u/Voxelman Mar 19 '24
You know Haskell, you want to use a ML language for scripting, but you don't want to use a language that is highly inspired by Ocaml and other functional languages.
Maybe you should give it a try. With your Haskell background the borrow checker will be your friend