Fork me on GitHub

2 questions 1. For each component, what's line you draw for a field to be a base field (declared with defrecord) or just an ad-hoc field? 2. In stop function, what's the downside if we don't dissoc or assoc nil to fields?


1. I declare every field I use within the record closure 2. Those field values won’t be candidates for garbage collection until the system is garbage collected. Callers may be able to make use of components in the stopped state.