>basically an isNull() method
hmm, would that return true simply if the value had zero length?
or only if it had never been set?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of RADEMAKERS Tanguy
Sent: 21 September 2005 13:11
To: [email protected]
Subject: RE: [CFCDev] Default for Dates in a Transfer object


>Another option is to roll your own date object and pass an instance of
>it into the function instead.

Actually, this could be one way around the whole type safety / null
problem with cf - develop a system of object types (Date.cfc,
Integer.cfc, String.cfc, etc). Then you could choose to work with
"primitives" (the regular built in cf data types) which are loosely and
dynamically typed and have no concept of null, or with object types
which are statically, strongly typed and do (well... can) have a concept
of null (basically an isNull() method).

The two biggest problems i can see with this approach is that a) object
types would be more cumbersome to work with, since you would have to
call methods to do what you do with operators on primitives (ie no
MyString = "hello world" when MyString is an object type, and certainly
no MyArray[1] = "value") and b) performance - creating instances being
expensive.

On the other hand, i'd think it would be extremely unlikely that the
built-in cf data types will support the notion of null values anytime
soon, since that would break a lot of existing code.

/t


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to