On 5/23/06, Mildred <[hidden email]> wrote:

On Sun, 21 May 2006 12:11:42 -0400 Vineet Jain wrote:
> Am in the process of embedding python in Lua:
>
> I cannot do the following in Lua: "200502" <= a <="200601"
> I get the following error: cannot concatenate boolean to string. So I
> have to type the above as:
>
> "200502" <= a and a <="200601"
Why not something like :
a in "200502", "200601"
The main problen is you can't make the difference between < (less
than) and <= (less or equal)

Well, heck! Why not just use standard mathematical notation?
a in ("200502", "200601"]
(Answer: Because special-case syntax for every little thing makes a
language complicated, ambiguous, and unreadable.)