component

2016-12-01T03:10:30.000272Z

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?

donaldball 2016-12-01T15:14:03.000273Z

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.