Should one comment differently in functional languages
- by Tom Squires
I'm just getting started with functional programming and I'm wondering the correct way to comment my code.
It seems a little redundant to comment a short function as the names and signature already should tell you everything you need to know. Commenting larger functions also seems a little redundant since they are generally comprised of smaller self-descriptive functions.
What is the correct way to comment a functional program? Should I use the same approach as in iterative programming?