Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kgeist
on May 10, 2022
|
parent
|
context
|
favorite
| on:
Bubble Tea: fun, functional and stateful way to bu...
>One limitation of this is that the model structure can only contain value type (e.g. no pointers, arrays, or maps)
How does one manage dynamically sized lists of elements, if arrays are disallowed?
simulate-me
on May 10, 2022
[–]
You can use arrays, but if you want to maintain the Elm-like model of before and after states, then you need to explicitly copy the array into the new state rather than rely on Go copying just the pointer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
How does one manage dynamically sized lists of elements, if arrays are disallowed?