Nothingness

Sean Hinde Sean.Hinde@REDACTED
Thu Oct 25 02:50:18 CEST 2001


> Hi,
> 
> I'm now hip-deep into my first Erlang project. It has been 
> exciting, and 
> very productive.

Good isn't it!

> One of the immediate issues I ran up 
> against was how 
> to represent missing data -- that which would be 
> representated in an SQL 
> database as NULL.

I tend to use the empty list [] to represent null data. It is stored
extremely efficiently as it has it's own special tag value. Your only
problem is to distinguish it from the empty string..

Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list