Re: Is everything an expression?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Is everything an expression?
- From: Seppl Vorderhörer <Seppl.Vorderhoerer@...>
- Date: 2013年9月09日 22:42:17 +0200
Well... let's for the moment put aside the unpolite and insulting
tone of your email.
"for" is used in Lua in two forms:
for var=start,end,inc do something
... which is pretty close to a native language: run through all
values from start to end.
Same applies to
for a,b in pairs(c) do something
The same applies to "while" or "do": "While something is the case do
something else" is a nice construct even containing both keywords
and at least from my point of view they are not used too far from
their meaning in English.
I even dare to say that the creators of programming languages
usually choose keywords to have meanings that to some extent
coincide with or come close to their meanings in natural languages.
Also "or" has a meaning in Lua, that comes somewhat close to the
meaning of "or" in natural languages: Something is either this or
that (or both).
On top of that even "and" has a meaning in Lua which is the same as
in English in a specific context. Something is true, if it's both a
and b. The only (in my opinion) weird thing is to use "and" as a
selector to convert "a and b" into the result "false" or "b"
depending on "a".
This is only my opinion. You can have your own and we can discuss
this or leave each other alone (which I will do from now on).
But there is no need for getting rude or unpolite.