|
|
|
|
|
by gf000
29 days ago
|
|
You are looking at it from the wrong direction. The problem is not that you can write bad stuff in rust, the problem is that this particular usage pattern can't be sanely coded in C. This is a public API that should inform users and enforce certain properties. A Results type does exactly that, you would have to go way out of your way to force invalid stuff through that type alone. |
|