Re: Integers-related trap in Lua 5.3
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Integers-related trap in Lua 5.3
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2016年5月18日 20:01:09 +0200
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.