Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TurboHaskal
· 6y ago · 0 comments
What I do: Write pure functions, but don't shy away from mutating lexically scoped state in order to improve performance. For global stuff, wrap it with classes since objects are a commonly understood way to reason about state.
Comments
[–]
Ambrevar
6y ago
For immutable data structures, there is this helper library which can help:
http://quickdocs.org/immutable-struct/