[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Documenting Lua gotchas for newbies.
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 1 Dec 2010 21:28:29 +0100
Following the floating point discussion, I tried to look for a compilation of the various gotchas Lua beginners encounter, but I couldn't find one, so I decided to compile one...
Right now, I can think of two of them:
- Floating point inaccuracies. A simplified version of Patrick Rapin's "math.compare (x,y,delta)" [1] could be proposed as a workaround.
- The fact that you have to declare locals before using them.
Are there other potential traps? On what did you stumble while learning the language?
Kind regards,
-- Pierre-Yves
- Follow-Ups:
- Re: Documenting Lua gotchas for newbies., Pierre-Yves Gérardy
- Re: Documenting Lua gotchas for newbies., Timothy Hunter
- Re: Documenting Lua gotchas for newbies., Lorenzo Donati
- Re: Documenting Lua gotchas for newbies., Sam Roberts
- Re: Documenting Lua gotchas for newbies., Peter Odding
- Re: Documenting Lua gotchas for newbies., David Manura
- Re: Documenting Lua gotchas for newbies., Axel Kittenberger
- Re: Documenting Lua gotchas for newbies., Timothy Hunter
- Re: Documenting Lua gotchas for newbies., Miles Bader
- Re: Documenting Lua gotchas for newbies., Lorenzo Donati
- Re: Documenting Lua gotchas for newbies., David Kastrup
- Re: Documenting Lua gotchas for newbies., Alex Bradbury
- Re: Documenting Lua gotchas for newbies., GrayFace
- Re: Documenting Lua gotchas for newbies., Roberto Ierusalimschy