v0.5.0
What's Changed
-
Async by default and native return types for more convenience and improved type safety (#25)
// Comparison, sketching version differences and problems solved. // v0.4.0 fn my_v_fn_called_from_js(e &Event) { spawn fn (e &Event) { interim_res := my_fn_with_err_potential() or { return } // Handled error, but missed returning a value to JS. // ... further time extensive processing. e.@return(res) }(e.async()) // Use `async()` to return a JS result form another thread. } // v0.5.0 fn my_v_fn_called_from_js(e &Event) string { interim_res := my_fn_with_err_potential() or { return '' } // Correct return type required. // ... further time extensive processing. return res }
-
Add
set_icon()
method to set the icon for a window (for now it supports Windows and Linux) (#24)
New Contributors
Full Changelog: v0.4.0...v0.5.0