Chaining with StructDelete()

Can I propose StructDelete() returns a reference to the updated struct? Rather than the rather unhelpful Yes/No boolean it currently returns. Then one may chain using the member function like so:

local.struct = {hello=true, bye=false, badday=true};
local.struct.delete("bye").delete("badday");

I think this would be a rather lovely addition to Lucee 6. (I haven’t requested this on Adobe ColdFusion, should I?)

@fast.tuna Already added in lucee 6 LDEV-2915 - struct.delete() should return the struct :wink:

7 Likes