(no title)
vijaybritto | 11 months ago
Could this have been avoided if they had used Rust? Or is this a bug that can happen even in Rust code too?
vijaybritto | 11 months ago
Could this have been avoided if they had used Rust? Or is this a bug that can happen even in Rust code too?
probably_wrong|11 months ago
andy12_|11 months ago
This specifically is the kind of bug that is avoided with strong typing. The compiler screams at you when using the wrong return type. For example, if a callback expects a Result type, you must return a Result type, not some random int-like value whose definition of success and failure is arbitrary.
surajrmal|11 months ago