lua-users home
lua-l archive

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


On Tue, Feb 26, 2008 at 4:40 PM, Eric Tetz <erictetz@gmail.com> wrote:
On Tue, Feb 26, 2008 at 12:45 PM, Fabien <fleutot+lua@gmail.com> wrote:
> The question behind syntax extensions is always: does it improve code
> readability?

When considering that question, you should probably add ", and for
whom?" More readable to the average Foo programmer, or the Foo guru?
There's great value in economy of concepts.
 
I think readability's always going to be a subjective thing - as evidenced by the multitude of individual coding styles. So given that, I'd say it's best then to strive to keep the language's design coherent with its philosophy.

As I understand it, Lua wants to provide "meta-mechanisms" for people to do what they want - so I'd say we don't have "continue" for about the same reason we have tables as the only native data structure. We can do it with what's there already, and do it in our own way, and good taste is up to the individual.

Personally, I wouldn't mind either way if continue were in the language, but this is how I see it when I try to detach my perspective =)