Hmm, a webdev colleague said he'd normally prefer without semicolons, but used them anyways for better compile errors.
Ephera
joined 5 years ago
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.