Uniform access principle

The uniform access principle of computer programming was put forth by Bertrand Meyer (originally in his book Object-Oriented Software Construction). It states "All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation."[1][2] This principle applies generally to the syntax of object-oriented programming languages. In simpler form, it states that there should be no syntactical difference between working with an attribute, pre-computed property, or method/query of an object.

While most examples focus on the "read" aspect of the principle (i.e., retrieving a value), Meyer shows that the "write" implications (i.e., modifying a value) of the principle are harder to deal with in his monthly column on the Eiffel programming language official website.[3]

  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2123: attempt to index a boolean value.
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2123: attempt to index a boolean value.
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2123: attempt to index a boolean value.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search