[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Try Lua!
- From: Jim Whitehead II <jnwhiteh@...>
- Date: Sun, 21 Jun 2009 10:37:46 +0100
On Sun, Jun 21, 2009 at 10:36 AM, steve
> On Sun, Jun 21, 2009 at 11:30 AM, Jim Whitehead II<email@example.com> wrote:
>> I'd seriously consider what your focus is actually meant to be. Isn't
>> it better to explain to the reader what is going on and lead them
>> through steps to understand it, than to hide all those details from
>> them? Lua is not Ruby, is not Python and hiding those details I can't
>> see being a good thing.
> It is still very useful to have a reasonably robust table dumper. Or
> do you force them to say 'for k,v in pairs(t) do print(k,v) end'? A
> little help in the begining is worth a lot of purity. Maybe make it
> explicit, even call it dump(), but don't exclude it.
I never once implied that it shouldn't be there, but it should not be
masking the default behavior of the language. If you'd note, in
lua_bot it's called pp() for pretty print. The name is terrible, but
it serves the same purpose.