I had a nice comment posted against one of my UDFs @ cflib.org today:
Sting (Guest):This is in regards to the savecontent() UDF I submitted a few weeks ago ("How about this for savecontent?").
Well, This is He, even if his functions make no sense, he adds them here, because he is administrator of this site..
TBH, the UDF is of minimal merit: it's definitely a proof of concept thing and simply replicates existing functionality. Although I happen to think it's a better approach to doing a
<cfsavecontent>
operation in CFScript, compared to the options Railo and ColdFusion have offered.The reason why I posted is threefold:
- it's a reasonable demonstration of doing less-obvious things with inline function expressions, so might prompt people to think about them more;
- it demonstrates how "closing tag" operations can be done in CFScript without needing special "block" syntax (which I deeply dislike);
- CFLib is a bit traffic-slow these days, so I thought it might remind people it's there.