140. Parentheses mean work (2026-11-21)
- Decision. A member reads without
()only when it is O(1): an@getproperty, or a view or generator (O(1) to make, paid while walking). Anything that computes or allocates up front takes(), whatever its arity:g.transpose(),t.centroid(),t.centroids(). List-returning getters became lazy views (g.edges,path.vertices,dq.items);Mod.inv,argmax,derivand bitsetfirstbecame calls; Fenwickall, bagfirst/lastand bitsetlenare kept current, so stay O(1).scripts/spec-stub.py --checkfails on an@getdocumented above O(1). Refines 21.3: an@getstill reads with or without(). - Why. Ryan: "you need parentheses for anything that's not O(1)". It is
the costs-are-visible rule applied to call syntax:
x.foonever hides a loop. - Reverse. Allow
@geton any zero-argument method, as before.