가끔 생각하지만 Go에는 Result<T>와 삼항 연산자가 필요한게 아닌가 생각한다

if err != nil 이라는 반복적이고 예쁘지 않은 안티패턴들을 계속 만들어내게 된다

오히려 익명 함수같은 체계는 다른 언어보다 잘되어있고 더 직관적이라고 생각한다 익명 함수를 잘 활용할수 있는 환경에서도 없다는건 많이 아쉽다

4

If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0198441b-bbfb-7bb0-af29-7d1d96cad25e on your instance and quote it. (Note that quoting is not supported in Mastodon.)