3 ms·
It seems like a very bizarre design choice, especially by an official language team, to use prefix strings instead of an enum. For example: (Http.GET, "/pat
by gavinray 3y ago
It seems like a very bizarre design choice, especially by an official language team, to use prefix strings instead of an enum.
For example:
(Http.GET, "/path")
Rather than the current:
("GET /path")
Odd.
- badrequest 3y agoIt adheres to the Go 1 compatibility promise.
- ilyt 3y agoIt's mistake they can't fix without breaking existing code or introducing new function. But I'd prefer just a bunch of mux.GET/mux.POST/etc functions instead of that.
- EspressoGPT 3y agoThis is a case where I, as a Go developer, would prefer to have function overloading for the sake of backwards compatibility . Because the compatibility promise is great, but the quirks caused by it aren't.