I'm working on a project that at some places would benefit greatly in code cleanliness if the problems were solved in a functional style. Now, Javascript is for the most part fully capable of doing functional programming, but I find that syntax gets in the way more often than not. The parentheses, having to write function and stuff like that.
So I'm looking for a way to somehow use a different language for those parts of the code. Either an embedded language that compiles to JS or an external scripting language with good interoperability.
Are there any existing solutions to this?