4 ms·
That works for functions. For datatypes that are used throughout the API, it does not work so well.
by accelbred 10mo ago
That works for functions. For datatypes that are used throughout the API, it does not work so well.
- dwattttt 10mo agoWouldn't a data type with no safe method of construction satisfy that? You can only get one by calling an unsafe function & satisfying its constraints.
- accelbred 10mo agoThat would be possible but also make its usage unergonomic and not the experience customers are expecting when requesting a Rust API.