Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.
6.18k
stars
3.65k
forks
source link
[compiler-v2][Feature Request] Index notation for tables #14829
Open
alnoki opened 1 month ago
@brmataptos @fEst1ck @georgemitenkov @rahxephon89 @runtian-zhou @vineethk @wrwg
Index notation is already available for vectors and for global resources, but not tables, which would analogously look something like:
&t[key]
for borrow item in the table&mut t[key].field
for mutably borrow field of table item