I appreciate it's to demo the capacity to compile Rust to js, but that's some really nasty code.<p><a href="https://github.com/tcr/rust-todomvc/blob/master/src/main.rs" rel="nofollow">https://github.com/tcr/rust-todomvc/blob/master/src/main.rs</a><p>Why put it all in the main? Why define functions as variables? Why .parent().unwrap().parent().unwrap()?
Would be cool if there was some small web framework you could use so you could avoid having your state in RC(RefCell)'s. Perhaps it's the Haskell guy in me but I always try to make my code have zero RC or even RefCells. I'm also a complete rust noobie, so perhaps that's not good practice at all :)
What's the development process like for a Rust-in-the-browser project like this? I mean, is it like; write some Rust - manually start a compile process - wait a while - view result in browser - repeat? Are there nice tools? :)<p>I'm used to working with raw JavaScript, ClojureScript with Figwheel, and Java/xhtml with JSF. Of the three, ClojureScript/Figwheel has given me the smoothest process so far, though I know there are tools for autoreloading raw js as well, just haven't gotten around to using them.
Nice. Maybe that can be one good use case for the use of rust. Using it in place of C++ for Emscripten. I wonder what are the other languages supported.