Archive for the 'ColdFusion' Category

Using nulls with ColdFusion

Came across a question posted by someone in a mailing list asking how to create and/or use a null object in ColdFusion. Problem is ColdFusion is a typeless language. Meaning a variable can contain an array one second and then a string or integer another. A null object isn’t really an object per se. It’s the lack of an object. ColdFusion has a habit of using a blank string as a ColdFusion “null”. However other typed programming languages (.Net, Java, C++, etc) treat a null object differently than any other object.

Continue reading ‘Using nulls with ColdFusion’