Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

better explanation here 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"



If Go supported Optional's, this bug would not have surfaced.


You 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: