4 ms·
better explanation here https://news.ycombinator.com/item?id=47106852 https://news.ycombinator.com/item?id=47106852 but in short they are changing whether stri
by PunchyHamster 9mo ago
better explanation here https://news.ycombinator.com/item?id=47106852 https://news.ycombinator.com/item?id=47106852
but in short they are changing whether string is empty, and query string "pending_delete" is same as "pending_delete=" and will return empty
Or, if they specified `/v1/prefixes?pending_delete=potato` it would return "correct" list of objects to delete
Or in other words "Go have types safety, fuck it, let's use strings like in '90s PHP apps instead"
- lenkite 8mo agoIf Go supported Optional's, this bug would not have surfaced.
- PunchyHamster 8mo agoYou can probably make it with generics. But if I was given option to steal one feature out of other languages it would be enums and resulting Result/Optional from Rust