Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
TurboHaskal
6y ago
0 comments
Save
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
1 comments · 1 top-level
top
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