Advertisement
Advertisement
β‘ Community Insights
Discussion Sentiment
100% Positive
Analyzed from 342 words in the discussion.
Trending Topics
#function#colored#languages#arguments#colors#callstack#don#where#functions#framework
Discussion Sentiment
Analyzed from 342 words in the discussion.
Trending Topics
Discussion (7 Comments)Read Original on HackerNews
This doesn't feel like a useful distinction, but i don't think "function coloring" in general is a useful framework.
I don't know about what would constitute as colored function in go as I generally don't consider arguments to be function colors.
Maybe methods in go would be different colored functions when they are defined on different struct types.
I'd venture to guess that there's a more abstract way of formalizing this in the sense that monad instances are required to be threaded through the callstack in particular cases(would love to see this spelled out formally) where IO and Cont(?) have this requirement but State like the author points out, does not.