Resurgence-VM-Development / Resurgence

The Resurgence VM, a register virtual machine designed for simplicity and ease of use, based on the old Rendor VM
https://crates.io/crates/resurgence
MIT License
14 stars 0 forks source link

Improve code stability #8

Open dynafide opened 2 years ago

dynafide commented 2 years ago

In order to improve the stability of Resurgence as a library, all calls to panic!() .unwrap() and todo!() should be rewritten to pass results to the calling application. I'm creating this issue to keep track of progress.

StandingPadAnimations commented 2 years ago

I think for .unwrap() we can use a try catch statement and handle the error internally

StandingPadAnimations commented 2 years ago

todo!() statements will not be part of the first stable release unless something odd happens

dynafide commented 2 years ago

.expect(err) should also be avoided before stable release.