|
|
|
|
|
by _nalply
522 days ago
|
|
In Rust I came to the opposite conclusion. One webserver framework, Axum, has the trait IntoResponse which is returned by something that implements Handler. A lot of things implement IntoResponse and/or Handler. In plain English you have handlers, these are parts of code that get selectively invoked for a request. The handlers return data that can be made into responses. It's powerful, but if something doesn't fit exactly, the Rust compiler throws gibberish errors at you. It's finnicky as hell. But once you have written something that works, it is beautiful to read. So it's difficult to write such code, and if it's easy for you then it's because you mastered the art. |
|