Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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?



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: