vyper icon indicating copy to clipboard operation
vyper copied to clipboard

VIP: change behavior of array getters

Open charles-cooper opened this issue 2 years ago • 2 comments

Simple Summary

have array getters return entire array instead of current behavior of returning a single item

Motivation

matches developer expectations more, also can reveal design flaws sooner

Specification

TBD

Backwards Compatibility

breaking change, must be in v0.4.x

Dependencies

If this VIP depends on any other VIPs being implemented, please mention them.

References

Add any references that this VIP might reference (other VIPs/issues, links to blog posts, etc.)

Copyright

Copyright and related rights waived via CC0

charles-cooper avatar Jun 06 '22 15:06 charles-cooper

meeting notes: design/spec needs more details

charles-cooper avatar Jun 06 '22 15:06 charles-cooper

once we have custom parser, might be good to have separate decorators for like @item_getter vs @array_getter

charles-cooper avatar Jun 06 '22 16:06 charles-cooper