| ▲ | atombender 2 hours ago | |
For backend web dev, there are advantages. I really like Axum's use of typing:
With a route like:
…the "dataset_id" path variable is parsed straight into the dataset_id arg, and a query string "verbose" is parsed into a boolean. Super convenient compared to Go, and you type validation along with it.Many other things to like: The absence of context.Context, the fact that handlers can just return the response data, etc. What I don't like: Async. | ||
| ▲ | ricardobeat 41 minutes ago | parent [-] | |
go is slightly more verbose (surprise) but you can achieve the same thing using struct binding in gin:
This is actually a great example - what happens in that Rust version when the input parsing fails? Go makes it explicit. | ||