Here’s an article on Currying in Go. Currying is a technique borrowed from the functional programming. It’s essentially a partial implementation of a function.
Anyways, I find such articles interesting, because they show some unconventional angles of a language. I haven’t personally used currying in Go yet. However, examples in that article look reasonable. Maybe, one I day I will try it.
I’m not saying that you should use this technique in your code, but maybe you find it useful. In the latter case, you’re welcome!
#go #programming
Post #2098
2.9K
- 👍 9