Yeah, me too. I tried loose typing for a while but it drives me crazy. As for ColdFusion being easy to use, yip, it can be. It can also be a right royal pain in the tucus. And don't get me started on the whole RADness of it.
Sorry guys, am having a grrr day. Will play nice tomorrow I promise :)
Cheers, Pete (aka lad4bear)
On 20/09/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> So make an error. Throw an exception if the string isn't empty and
> can't be converted to a date.
Which is exactly what the code I proposed earlier does.
> > (and may as
> > well just leave the attribute off). Not that I recommend that
>
> I'm on the verge of recommending it.
Strong typing is a great asset to programmers, as it helps catch a lot
of bugs earlier than they might otherwise be caught. I happen to like
it a lot, and am willing to deal with CF's buggy (as far as I'm
concerned) implementation to get the benefits I can out of it.
cheers,
barneyb
On 9/20/05, Patrick McElhaney <[EMAIL PROTECTED]> wrote:
> On 9/20/05, Barney Boisvert < [EMAIL PROTECTED]> wrote:
> > The problem is that 'string' is way too lenient, because you want to
> > allow dates, the empty string and that's it. A type of 'string' will
> > also allow "hulabaloo" to be passed without error, which is
> > undesirable.
>
>
> Another option is to roll your own date object and pass an instance of
> it into the function instead.
>
> > Of course, you HAVE to use type="string" in order to
> > circumvent CF's weird type system, but by doing so, you're basically
> > removing the utility of having the typing system at all (and may as
> > well just leave the attribute off). Not that I recommend that
>
> I'm on the verge of recommending it.
>
> Patrick
>
> --
> Patrick McElhaney
> 704.560.9117
> http://pmcelhaney.weblogs.us
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 100 invites.
----------------------------------------------------------
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]
