TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

RFC Should functions have a color?

2 pointsby Merkurover 9 years ago
The title is a reference to http:&#x2F;&#x2F;journal.stuffwithstuff.com&#x2F;2015&#x2F;02&#x2F;01&#x2F; what-color-is-your-function&#x2F; a joyfull rant about async functions and promises.<p>I like to request your comment on a similar topic. While coding in go - I often find me asking: is this package go-routine save? Many times I find the answer in the doc&#x27;s or can ask on the internet, sometimes I need to look at the code.<p>&quot;go routine safety&quot; is just like the color in the rant of munificent.<p>On a current project I would like to assert that a user provided callback is a pure function - there we got another color!<p>those two colors are alike - they represent meta informations about an entity (function, package, struct) and they are about the behavior of the entity.<p>They also have something to do with boundarys - tho my English skills deny me to elaborate :(<p>I wounder...<p>Do you know other kinds of colors?<p>Is that coloring bothering you? And if not how do you approach it?

no comments

no comments