dhorsley / za

Za scripting language
https://zalang.org
MIT License
5 stars 1 forks source link

Struct use with map and filter operations #8

Closed dhorsley closed 2 years ago

dhorsley commented 3 years ago

As in subject, decide on syntax and update to permit struct use in similar vein to other types in array and map operations.

Should also review overall use at this point.

dhorsley commented 3 years ago

not done yet. operators will stay the same as for arrays.

have to review for suitability before committing to doing this work as it could be a pain in the arse without generics.

I.e. may have to wait until newer Go versions have stabilised generics functionality and we do a sweep through all of the code for appropriate use cases.

dhorsley commented 2 years ago

still waiting on go 1.18 in the new year before reviewing this issue further.

dhorsley commented 2 years ago

modified map and filter to work with dirent structs. no other use cases found yet. reviewed generics adoption post go 1.18 and doesn't look like there is much improvement to be had. will close this issue in the near future unless other type requirements arise.

dhorsley commented 2 years ago

will raise further tickets for this if it needs new types adding. closing for now.