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

I'm curious what your team experience was with Lua.

IIRC, Lua is even more liberal than Python in that if you mistype a variable name, it will silently give you 'nil' rather than throwing an exception.

Also, the prototype system is a little wonky. It seems overly flexible and makes you do too much work yourself, which would make it hard on a large team all getting started at once.

If Torch gets popular I wonder if something like TypeScript or Facebook's own Flow would start to make sense.



> IIRC, Lua is even more liberal than Python in that if you mistype a variable name, it will silently give you 'nil' rather than throwing an exception.

Like most things in Lua, that is easy to customize. You can just add an __index metamethod to environment tables. There are various 'strict' modules which do just that.


Thats what we love about Lua, it gives us control of the side effects.


So some of our team were a bit disoriented with the lack of reference counting and for others it was their first foray into functional programming.

Our team first picked up the Little Schemer and then jumped directly to lua.




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

Search: