racket / rhombus

Rhombus programming language
Other
332 stars 59 forks source link

add `protected` #517

Closed mflatt closed 2 months ago

mflatt commented 2 months ago

A protected field or method is similar to a private one, except that the method is visible within subclasses and can be overridden in subclasses. Although privately implementing interfaces covers similar ground, when working on rhombus/pict, using protected is clearer and simpler than a private-interface encoding.