[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expression statements
- From: Wesley Smith <wesley.hoke@...>
- Date: Mon, 16 Aug 2010 20:27:47 +0200
On Mon, Aug 16, 2010 at 8:17 PM, Peyman <peiman_3009@yahoo.com> wrote:
>
> i want create a interpreter based on Lua , but when bodies from other langs come to my interpreter lang say sometimes this default option that 0 and null string have true value bother them because in many langs 0 and null string have false value.
>
In my experience these other languages are C and C++. Java requires
explicit x == null for objets for example. Ruby is similar to Lua in
this respect as well. Basically what I'm getting at is that the
majority of languages are not this way. I used to think the same
thing as you, but in the end my thinking was warped by the all
pervasiveness of C and C++.
wes