How can i improve my too object-oriented code?


i’m at now working on a simulation of the Solar System in Rust. It’s a port from a C++ version i have done at university two years ago, with a too much object-oriented approach.
Now, i’ve completed the simulation engine in Rust, before my next target of make the simulation graphical (with Piston ndr), i wanna ask to the community where the code can be rewritten in a more “Rustonical” style.

Thanks for the help and the patience!


One think what jumps into my eyes is that normally you have the extern crate ... only in the and/or


Without extern crate the code not compile


oh you are right you have to add use num; or use num::self; in the files where you deleted the extern crate.

i made a pull request on github