Better HN
topnewbestaskshowjobs
Log inSign up

stuffinstuff

2 karma · joined Jan 27, 2016 (10y ago) · 2 submissions

Submissions

comment 10y ago · link · parent

Thanks for the feedback! Will have a look at the linter.

comment 10y ago · link · parent

I looked at Lua briefly, but the immediate impression I got was that Python gives you more help in avoiding errors. In Lua, you might be bitten by:

* variable name typos (undeclared vars are nil),

* accidentally confusing array-style tables and hash-style tables (or vice versa),

* tables with "holes" (nils) in them,

* multiple assignment with wrong number of vals or vars (mismatch silently ignored),

* variables are global by default.

Have you found this to be the case at all? Is it more difficult to avoid bugs when writing in Lua?