3 ms·
The post shows a style of writing validations for untrusted input. Like form data or incoming API requests. The problem is orthogonal to the type of language u
by the_duke 5y ago
The post shows a style of writing validations for untrusted input. Like form data or incoming API requests.
The problem is orthogonal to the type of language used, you have to validate and convert data in Rust just as much as you have to in Python.
- nerdponx 5y agoIf anything, static typing forces you to write these validations in the process of deserializing data, otherwise you couldn't construct instances of the necessary types in the first place.