[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is it hard to write a fast JIT for a language that distinguishes between NULL and Int32=0
- From: Javier Guerra Giraldez <javier@...>
- Date: Tue, 11 Oct 2011 12:28:54 -0500
On Tue, Oct 11, 2011 at 10:21 AM, Alex Queiroz <email@example.com> wrote:
> Although I am no expert, I will try to answer anyway: NULL in this
> case can be a non-pointer type which has a single value. In this case
> all is needed is a encoding for this new type inside a machine word.
> But this is for a dynamic language, I don't know about Dart.
in Dart, numbers are objects that implement some interfaces, and all
the complexity of traditional OOP. NULL is exactly that: no object,
while 0 is a number of value 0.