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

The approach Elm uses is every event goes through a main "router", no exceptions.

If you want to do sth special on the account page modal scroll, you issue a specific event for that, and deal with it in the same way as any other.

It is a very simple and clean model, but not complicated enough for some people :) of course it helps that with a good type system you can catch missing or incorrect cases.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: