The Science of Programming/SwayPresentations/Objects/PublicAndPrivateComponents

Public and Private Components

Every component in a Sway Object is public:

  • A belief that programming is not a adversarial exercise
  • Simplifies the language (syntactically speaking)

However, it is possible, with a little bit of work, to make a component private. One method in Sway uses simple scoping rules (see the Class and Object Components page.

The other uses operator overloading.


Next Previous Top

Last modified on 27 July 2009, at 20:34