[swift-evolution] [Pitch] Named subscripts 2
tonyfreeman at protonmail.com
Fri Jan 13 03:43:50 CST 2017
Hello Swift community,
I found this very useful while wrapping c api, although this may simplify the code in other cases when subscript doesn't have it's own state and(or) share some state form the container.
here is an example: https://gist.github.com/tonyfreeman/949ce0a9aa374ab6fa2fc7de0dccaa27
another option would be use set/get functions, but it doesn't feel right.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution