Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've really enjoyed poking at OpenResty and I found Lapis to be the most mature framework working with it.

However, I find the use of Moonscript for its examples sites and the obvious preference for it in the documentation to be quite maddening. Using moonc to compile things down to Lua doesn't really make tracing through code any better when trying to gain a full understanding of the stack.

I've got very little desire to go out of my way to learn Moonscript since I will not get company approval to work in it and I cannot train my coworkers on it just so they can learn to use Lapis. Already it was a stretch adopting Lua where I am and to be quite honest, I really haven't liked what I saw of Moonscript anyway. I don't want or need classes and its associated machinery, I particularly do not want semantic whitespace.

I really hope to see more focus placed on making Lua proper a first-class citizen for the framework, including provided examples. Otherwise, Lapis does look like the right tool for the job and I liked many of the other decisions made over it.



I use Moonscript and like it, but do not use the classes (partly for "leaky abstraction" and debugging reasons, partly performance concerns). I'm a fan of significant whitespace and most of the rest of its syntax sugar. The only part I dislike is the odd choice to use backslashes instead of colons for method calls. (I know leafo explained his reasoning many times in GitHub issues, but I still think there are some better alternatives.)

I also like Coffeescript though. If someone doesn't like Coffeescript, they probably will not like Moonscript either.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: