When writing subclasses, it is sometimes awkward to access variables defined in a superclass. Generally this requires that the superclass add accessor methods which are generally less efficient than direct variable access and may open up access to wider than desired access.
For the expose instruction, it would be nice to qualify the variable on expose the same way method invocations can be used. For example,
would expose the name variable in the super class context. It might be nice to allow an environment symbol to be specified that can allow access to any class in the hierarchy.
If this is done, then the equivalent function should be added to the native APIs to allow native methods equivalent access.
This does expose subclasses a little more to the "fragile base class problem". It might be reasonable to immediately raise an error if a variable exposed in this way does not exist in the super class scope. This would preclude exposing these variables in an init method, but would also introduce a level of reliability since it allows errors to be more easily diagnosed.