-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - apiDesign and usabilityDesign and usability
Description
Currently we have #797 and #845 working on bringing in webassembly support. Unfortunately, in the browser we have to return from function calls. These backends both have to rely on throwing exceptions as control flow in order to break out of the loop.
Is there a way winit could provide some mechanisms for loops that work this way? I noticed some of the other backends implement a run_return function that is usually called by run; perhaps winit could standardize on this?
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - apiDesign and usabilityDesign and usability