Hacker News new | past | comments | ask | show | jobs | submit login

I write mostly Ruby these days, and this is my approach too. I usually write the pure functions as class methods. It would be great if it was possible to declare a function "pure" and have checks that it only uses pure functions itself - although this would be impossible to guarantee with Ruby, given its extremely dynamic nature.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: