lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 27/06/2011 20:37, Dave Collins wrote:
I try to avoid regex's. Just because a block of code is shorter doesn't mean it’s
simpler. I find them largely opaque to easy comprehension.

They are opaque only for the uninitiated, or when getting too large... Which is mostly avoided in Lua because of lack of alternative (the pipe).
Documenting/commenting created regexes can help too... :-)

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --