Quantcast
Channel: Add optional abort Attribute to cfinclude
Viewing all articles
Browse latest Browse all 40

Add optional abort Attribute to cfinclude

$
0
0

@agentK wrote:

I think you're spot on in your response to @modius. What Geoff is referring to here IS different because it exits a template and it doesn't stop execution of everything.

Also: There is a conceptual difference.

@21Solutions problem CAN be solved with the existing language and using two separate tags for their respective purpose. Or if he's too lazy to type it, use a Snippet. Under the premise that I (and others) think this coding style is not a good practice, I don't think it should be made "acceptable" by a language shortcut.

From looking at the other discussion @modius linked, it looks like to me that the problem raised there can be efficiently solved with <cfexit>. SURELY the include tag could get an exit-attribute instead of @21Solutions suggest abort-attribute, but it kind of is the same situation from my point of view: meddling to things that should be separated into one tag just because we can.

And LuceeLang should not be about creating a new mess of "shortcuts" for a doubtful purpose - that's a bad approach to language design.

Read full topic


Viewing all articles
Browse latest Browse all 40

Trending Articles