Y
Hacker News
new
|
ask
|
show
|
jobs
by
oaiey
163 days ago
Yes. Or even simpler, static imported functions. That is similar to how ASP.NET Core handles HTTP feedback. A very common and understood concept.
With implicit type parameters this boils down to Ok(4) or BadRequest()