From b1fb167be3f6495ad9dd3558fdec5071a70d9b7a Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Tue, 31 Mar 2020 22:13:36 -0700 Subject: [PATCH] Say that if it doesn't fit as an attribute, it should be a method. (#165) Fixes #139. --- index.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.bs b/index.bs index 9218b882..b97679f5 100644 --- a/index.bs +++ b/index.bs @@ -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. +

Consider whether objects should be live or static

Objects returned from functions, attribute getters, etc.,