lua-users home
lua-l archive

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

> Hah. I would just take it as a compliment, even though PHP obviously has its
> shortcomings (in abundance). They probably just meant that Lua is friendly
> and easy to use. :-)

Shortcoming? PHP IS a shortcoming. I should know, I am working with it
regularly and there are a lot of weird behaviors. I mean, take this:

$a = 1;
$b = 0;

$c = $a and $b;
$d = $a && $b;

echo "'$c' != '$d' \n";


'1' != ''

The 'and' operator is different from the '&&' one - it has a !lower!
precedence than the "=" operator (for whatever reasons) resulting in
such things!