Something that I’ve always loved in Angular is the ngRepeat directive provides a way to access the isFirst and isLast properties of the iteration. It could be cool for ColdFusion to do the same thing:
I’ve definitely used CSS and things like :last-child to alter the way something happens in a list. But, this isn’t always possible (such as when the thing being added needs complex HTML structure). But yeah, I do like using CSS when possible as it reduces the complexity in the code.
I doubt this would be adopted the original code is more readable IMHO, plus cfloop already has a kitchen sink of attributes <cfloop> :: Lucee Documentation