Hmm, a webdev colleague said he’d normally prefer without semicolons, but used them anyways for better compile errors.
Ephera
- 0 Posts
- 3 Comments
Joined 5 years ago
Cake day: May 31st, 2020
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
For optimal performance, you should rewrite it in Rust:
inline_python::python! { print(js2py.eval_js("(number) => number % 2 ? 'odd' : 'even'")(number)) };
That’s terrifying, especially in JS where no type system will fuck you up for returning nothing when you should’ve returned a boolean.