salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Java Define Class: Access to Hidden Fields #98

Open salmanahmad opened 10 years ago

salmanahmad commented 10 years ago

See more here: http://docs.oracle.com/javase/tutorial/java/IandI/hidevariables.html.

Basically, we may want to support something like super.a = 5 to allow access and mutation to fields in super classes. Then again, I may not want to support this feature (or give it low priority) because "Generally speaking, we don't recommend hiding fields as it makes code difficult to read".