Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
TurboHaskal
6y ago
0 comments
Share
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.
0 comments
default
newest
oldest
Ambrevar
6y ago
For immutable data structures, there is this helper library which can help:
http://quickdocs.org/immutable-struct/
j
/
k
navigate · click thread line to collapse