logoalt Hacker News

Self-referential functions and the design of options (2014)

14 pointsby hambesyesterday at 9:41 AM3 commentsview on HN

Comments

sneaktoday at 2:49 AM

This seems to me, despite being cool, like the exact type of “too clever by half” code that Go was explicitly designed to avoid.

I like Go because most code is (if a bit verbose) not written like this. It’s written as if the person reading it is a little sleep deprived or one drink in - it doesn’t require much brainpower to reason about.

Adding methods that return functions that return closures is the kind of thinking with portals that I need to rev up my brain to be able to debug, and that’s a liability when there are deadlines involved.

show 1 reply