lua-users home
lua-l archive

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


2016-05-18 19:35 GMT+02:00 Soni L. <fakedme@gmail.com>:

> Correct me if I'm wrong but I think people have a problem with tonumber(),
> and, as tonumber() relies on Lua's number parsing rules, they want to "fix"
> the parser/lexer to fix tonumber(), with tonumber(read_user_input()) being
> the primary use-case.

I was brought up to regard a programming language as a given.
It is up to the programmer to master it and make it work.

Therefore I have a problem with people who have a problem with
Lua (and Python, and Fortran, and ...). They should rather exploit
the available tools. For example,

  read_user_input():gmatch(user_pattern,user_handler)

can be made to do almost anything.