I think Kerry's rationale makes sense. But I think if your function
ignores trailing empty spaces you can get away with returning an empty
array for an empty string. I think an empty array is much more likely
to yield expected results especially in the context of web development
and CF.

"Bob,Larry," -> ["Bob", "Larry"]
"Bob,Larry" -> ["Bob", "Larry"]
"Bob," -> ["Bob"]
"Bob" -> ["Bob"]
"," -> [""] 
"" -> []

Patrick
 
-- 
Patrick McElhaney
704.560.9117
http://pmcelhaney.blogspot.com
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to