(no title)
faoileag | 4 years ago
So you have to be disciplined. I stick to the following rules:
* have a (main) function
* prefix io functions with io- and only use them in (main) (inspired by Haskell)
* No loop. Always recursion.
* No variables. No local ones and definitely no global ones.
That way, you have to think more in functional terms than in imperative ones.
Helps me. Your mileage might vary.
No comments yet.