[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Propsoal: a lua dialect without nil
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 15 Feb 2011 12:31:36 +0200
On Tue, Feb 15, 2011 at 12:20 PM, Axel Kittenberger <firstname.lastname@example.org> wrote:
> To sum it up:
> pro: less confusion about nil as "second class value" (regardless if
> that idiom exists)
> pro: one primitive type and keyword less in a minimalistic language.
> pro: errors (from typos or otherwise) are raised much closer to where
> they happened than the nil value causing hickups later.
I tend to like 'errors thrown early' but there are ways and means of
doing this already.
I don't doubt that such a dialect could be crafted, but it would not
really be Lua anymore. The default-arg specifier seems particularly
un-Lua-like, reminding me more of C++. I know there are arguments for
'non-nullable types' but we are mostly used to the fact that an object
reference can be nil. Otherwise, there has to be another distinct
I am not yet persuaded that there is a serious problem that needs such
drastic surgery. Maybe just homoepathy?