Tests are needed and the syntax is still not 100% ideal but I think we can agree this is a nice feature to have, especially in conjunction with the nullco ?? operator.
Also, we should probably do some typechecking in SafeNavigation (we shouldn't allow any access to be on a non-pointer type), which involves resolving the accesses there and only adding the variable decl and comma sequence after we make sure we can resolve everything.
See fasterthanlime/nagaqueen#28
Tests are needed and the syntax is still not 100% ideal but I think we can agree this is a nice feature to have, especially in conjunction with the nullco
??
operator.Also, we should probably do some typechecking in SafeNavigation (we shouldn't allow any access to be on a non-pointer type), which involves resolving the accesses there and only adding the variable decl and comma sequence after we make sure we can resolve everything.