Like #3, the current API requires students to write an explicit busy loop, while Python since 3.5 provides the async mechanism for implementing event loops using tasks and coroutines.
Improving this API would foster an event-driven programming style, where students define
event handlers to react to events
edge triggers to generate events
Predefined events could be as in #3.
It may be useful to provide a set of Rosa-specific decorators to simplify the coding task for students.
Like #3, the current API requires students to write an explicit busy loop, while Python since 3.5 provides the
async
mechanism for implementing event loops using tasks and coroutines.Improving this API would foster an event-driven programming style, where students define
Predefined events could be as in #3.
It may be useful to provide a set of Rosa-specific decorators to simplify the coding task for students.