idea: 'expose' properties. Sort of like an alias. Say you have some class 'myclass' with a member 'attr' that has a member 'idk' but you want to access it directly rather than via 'attr'. Easy:

expose attr.idk as thing ;

Then interacting with myclass.thing is identical to myclass.attr.idk.

Could also be used for better access control on members, for instance myclass.attr could be private, but the expose could be public so other things can access just that one member and not the rest of the class.

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!