Skip to content

Commit

Permalink
Say that if it doesn't fit as an attribute, it should be a method. (#165
Browse files Browse the repository at this point in the history
)

Fixes #139.
  • Loading branch information
dbaron authored Apr 1, 2020
1 parent 19bbf27 commit b1fb167
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ much like a data property as possible. Specific guidance in this regard includes
true. (This will not always be the case, e.g. if a normalization or type conversion step is
necessary, but should be held as a goal for normal code paths.)

If you were thinking about using an attribute,
but it doesn't behave this way,
you should probably use a method instead.

<h3 id="live-vs-static">Consider whether objects should be live or static</h3>

Objects returned from functions, attribute getters, etc.,
Expand Down

0 comments on commit b1fb167

Please sign in to comment.