terraform-plugin-framework icon indicating copy to clipboard operation
terraform-plugin-framework copied to clipboard

Add `Length()` function to collection values

Open ChihweiLHBird opened this issue 7 months ago • 5 comments

Related Issue

Fixes #1067

Description

Implement Length() functions for collection values, so users can avoid len(list.Elements()) which is less clean and efficient because Elements() allocate a new block of memory for returning a new slice.

If you guys prefer Size() or another naming, let me know and I can change it.

ChihweiLHBird avatar Jul 16 '25 07:07 ChihweiLHBird

Hi @rainkwan @austinvalle @stephybun, may I get some feedbacks and reviews for this change? Thanks!

ChihweiLHBird avatar Aug 08 '25 21:08 ChihweiLHBird

Any chance this may get a review?

zliang-akamai avatar Aug 29 '25 06:08 zliang-akamai

Hey @austinvalle @rainkwan @bbasata, may I get some thoughts from your team about this proposal? Thank you!

zliang-akamai avatar Sep 03 '25 04:09 zliang-akamai

may I get some thoughts from your team about this proposal? Thank you!

Hi @ChihweiLHBird,

Thank you for your patience. The team recently selected this pull request for triage, and a teammate will follow-up here with any feedback to get this change merged.

bbasata avatar Sep 09 '25 03:09 bbasata

Hi @bbasata, it has been a while, and I wonder if there's any update/feedback from the team. Thanks!

zliang-akamai avatar Oct 20 '25 23:10 zliang-akamai