Vesa Karvonen

Results 84 comments of Vesa Karvonen

@ivan-kleshnin I don't really feel welcome to comment here, but in Calm^2 we solve the problem of transmitting state to components using a powerful combination of modifiable reactive properties, called...

@josephsavona Again, I know my comments aren't welcome here, but in Calm^2 the goal of avoiding unnecessary computation has been present right from the start. The idea has been to...

> I struggled for a while with figuring out the isomorphism example. Yes, it is probably one of the trickiest exercises on the page. There is a simpler answer... >...

Thanks! I edited some of the answers and made a couple of additions. There really should be more exercises... Suggestions for exercises are welcome!

Yes, currently Partial Lenses do not support symbols and in non-production mode the library raises an exception as seen [here](https://calmm-js.github.io/partial.lenses/playground.html#DIOg5gpgLgFAygTwLYCMD2AbGBKANAAgG8BfbIA). I'm not opposed to supporting symbols, but I'm not entirely...

Ah... Good question. `xi2yF` spells out the signature of the parameter: it is a function that maps the value under scrutiny `x` and its index `i` to the resulting value...

Also, my latter example had a bug—I just fixed the link.

@Justin-ZS Oops. Thanks for the correction! Here is the [fixed playground](https://calmm-js.github.io/partial.lenses/playground.html#MYewdgzgLgBAZiEMC8MDKBPAtgIxAGwAoByBEYgSgChRJYAPFGAbwG0yBdALhgEYAGXgF8q+EAHNCLAHSz6AGhgYewmNTGSYAeRwArAKbAo0gIYQIAS3FhCzIYoUtlfIRTVA).

This is due to ["naked" objects](https://glebbahmutov.com/blog/sweet-naked-objects/). Unfortunately, at the moment, Partial Lenses does not support them. That is because naked objects are not instances of objects (specifically `Object.create(null) instanceof Object`...

Hmm... Interesting idea! Note that all the current interactive pages ([playground](https://calmm-js.github.io/partial.lenses/playground.html), [exercises](https://calmm-js.github.io/partial.lenses/exercises.html), and [readme](https://calmm-js.github.io/partial.lenses/)) use the development (rather than production) browser build of the library, which includes extra run-time checking...