4 ms·
To me, the second is smaller but less clear for hiding the logic. I'd assume both button and text are output always.
by projektfu 8y ago
To me, the second is smaller but less clear for hiding the logic. I'd assume both button and text are output always.
- haskman 8y agoIt might seem like that, but javascript generator semantics mean that execution pauses at the first yield, and awaits external input before it resumes computation. Also, the framework I described is only partially "hypothetical". [Concur-js](https://github.com/ajnsit/concur-js https://github.com/ajnsit/concur-js) gives you almost the same syntax and semantics. So you can try it out yourself :)