2 ms·
> because they thought its semantics are property-like, Suppose you include a logging statement in your accessor, which hides a race condition. You're gonna t
by throwawaymaths 3y ago
> because they thought its semantics are property-like,
Suppose you include a logging statement in your accessor, which hides a race condition. You're gonna tear your hair out.
- int_19h 3y agoSuppose you do the same in your getWhatever() method instead; what's the difference? If every property access is an explicit method call, the mental overhead on the API client is the same in practice, since most of those method calls are still semantically property-like and are treated as such.