@Araq: Sound very interesting, really looking forward in which direction this
will develop. +1 for the Elm inspiration and not following the the
one-file-component path. And compared to Elm, the Nim syntax really shines for
the templating stuff.
I've been wondering for some time, if it would be possible to achieve a design
which is even closer to the Elm architecture? On first glance it would be so
nice to write stuff like this:
type:
Model = object
# ...
Msg = object
# typically an object variant
proc init(): Model = ...
proc update(msg: Msg, model: Model): Model = ...
proc view[Msg](model): Html[Msg] = ...
karax.runMain(init, update, view)
Are there any plans to go in that direction or are there technical obstacles
which prevent such a design?