3 ms·
This is really cool. I'm looking forward to when they make the UI properly support it. They haven't changed much in the UI other than letting you type code in
by zck 12y ago
This is really cool.
I'm looking forward to when they make the UI properly support it. They haven't changed much in the UI other than letting you type code in other languages. My issues:
1. When you change the language for the current level, it doesn't change the default code. You have to delete the Javascript by hand, including the comments.
2. New levels don't have the default code be other languages.
3. editor "Smart Behaviors" (in Editor Configuration) doesn't work in Clojure. When I type an opening parenthesis, there is no closing parenthesis automatically inserted.
4. The "available spells" are in JS. If I didn't already know that "this.moveRight();" in Javascript translated to "(.moveRight this)" in Clojure, I would've had no idea how to do anything.
5. Errors aren't especially useful. In Clojure, typing "(.attackNearbyEnemy)" results in "parse error: expecting IDENTIFIER, COLON, ANON_ARG..." Obviously, this is a hard problem, but I'd rather see something like "you called a one-argument function with zero args".
6. In Emacs keybindings, if point is at the a line with text in it, C-k doesn't delete the newline character, moving the next line to the end of the current one -- it does nothing.
These are all things I expect to be fixed soon. There's a lot of work to be done to add multi-language support, and it's awesome it's getting done.
- vickychijwani 12y agoYeah, all of this is being tackled as we speak. I've already submitted default Clojure code for many of the levels, so selecting Clojure from the drop-down should soon switch the sample code as well. The Greed tournament was meant to stress-test the parsers; now it's time to polish the UI and make everything work smoothly.