Improving In Blackstone

is used to enumerate the variables used in your code, ensuring that they exist, optionally setting default values if they do not, and possibly also validating data types. Placing a series of tags at the start of a page makes it easier to ensure that required variables exist, and that they are of the right type.
But what if you need to check for types not supported by ? What if you wanted to check for specific values or value ranges or value patterns?
In Blackstone we plan to enhance in several important ways:
1) Additional data types (including e-mail, url, ssn, usdate and eurodate).
2) Value ranges using specified minimum and maximum values.
3) Regular expression pattern matching for ultimate control.
Yet another example of one of the many infrequently discussed goodies in the works.

9 responses to “Improving In Blackstone”

  1. Spike Avatar

    I assume you’re adding type checking for CFCs too.

  2. Rob Brooks-Bilson Avatar
    Rob Brooks-Bilson

    I think the regex pattern matchin alone is worth it’s weight in gold!

  3. Mark Murphy Avatar
    Mark Murphy

    There’s a bug in your rss feed — you need to xmlformat() the results because in this case the <CFPARAM> tag is hidden — the brackets aren’t escaped.

  4. Scott Barnes Avatar
    Scott Barnes

    hmmm awesome news (although beta users will go "dah.." hehe)
    Any news on future plans with CFPROPERTY btw?

  5. Tony Weeg Avatar
    Tony Weeg

    color me crazy if its already possible, but will ip address validation be in there?

  6. Ben Forta Avatar
    Ben Forta

    IP address validation would be a simple RegEx, you’ll even find one that you can use in this blog. 🙂

  7. Uwe Raddatz Avatar
    Uwe Raddatz

    I hope you provided cfargument tag with same functionality.

  8. Ian Welsh Avatar
    Ian Welsh

    Is this a subtle hint that we might have the option of making CF strongly typed like the underlying Java by explicitly declaring types in CFPARAM, CFPROPERTY and CFARGUMENT? If so, that would be fabulous!

  9. Ben Forta Avatar
    Ben Forta

    Ian, nope, that is not planned for Blackstone (and in all honesty, I am not sure I even like that suggestion, but that is a separate thread).

Leave a Reply