Simon Brown@sjb3d·Jan 22, 2017Ported http://kevinbeason.com/smallpt/ ray tracer to rust, laugh at my newbie rust code here: https://github.com/sjb3d/smallpt_rust….github.comGitHub - sjb3d/smallpt_rust: Port of smallpt to rustPort of smallpt to rust. Contribute to sjb3d/smallpt_rust development by creating an account on GitHub.318
Danny Grein@fungos·Jan 22, 2017Replying to @sjb3d@rustlang Seems good to me. Noticed two unwraps and minor unneeded mutable. Maybe break it down into functions for clarity?1
Simon Brown@sjb3dReplying to @fungos and @rustlangthanks, hadn't realised unwrap was bad style, but yeah may as well reduce number of ways to panic :)4:43 PM · Jan 22, 2017·Twitter for Android