What is Nostr?
jgomo3 /
npub1254…7zd3
2023-10-10 02:57:30
in reply to nevent1q…8unm

jgomo3 on Nostr: As the picture shows, the `update-state` function receives an `state`. In the ...

As the picture shows, the `update-state` function receives an `state`. In the function's signature, you destructure `state` extracting `channel` from it. I wonder why you didn't extract also `turtle` in that moment?. You prefered to get the `turtle` explicitly in the `let` expression instead.

I think it was a matter of taste, or style. Maybe related to the fact that `turtle` inside the `let` body is a derivates value from the original `turtle` you get from `state`.
Author Public Key
npub125456qhemvp0zx76fdxpehh73pfvd34keg8q8dcp8uvzep2yzwms4h7zd3