lua-users home
lua-l archive

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



On Sun, Feb 7, 2010 at 6:18 PM, Eike Decker <zet23t@googlemail.com> wrote:
I don't think this is as easy as it looks at first
what about these cases if whitespaces would not be required:

1. -- number
.1 -- number
2..3 -- must be number concatenated
.2..3 -- same
.2...2 -- uh same
.2...2..3 -- still valid
.2...2...3 -- still valid ...
.2...2...3. -- dang, that's an error!
2...2...3. -- but that's ok again

And what about this ambiguity:

2...2 -- should this result in (2.)..(2) or (2)..(.2) when evaluated?


This thread reminds me of the great quote:

Consistently separating words by spaces became a general custom about the
tenth century A.D., and lasted until about 1957, when FORTRAN abandoned
the practice.
    Sun FORTRAN Reference Manual

Robby