The Sapphire Language: getting and setting instance variables
Please only leave comments relating directly to this article.
Do not leave technical questions or general questions.
If you have any technical questions, we request that you join the forum in order to post them: http://www.sapphiresteel.com/forum/
The get and set keywords and their associated functionality are straight out of C#.
The minimalist Ruby approach is far cleaner and flexible IMHO. I would love to see the vastly cleaned up Ruby I envisioned when I first read of Sapphire. Adding keywords and a new way of defining methods is not cleaning up the language, it’s adding more cruft.
I also think the automatic exposing of class internals is a bad idea but, that’s less significant than littering the language with things that are already well served with the existing implementation.

