Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That is just a question of what you are used to. The "functional style" example is very obvious to a person who is familiar with that style. In fact if the rest of the code base is in a similar style it is the easier one to understand.

There is nothing inherent which makes either better or cleverer than the other.

(Also the first one is incomplete, as "n" is not defined, making the later more self contained)



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

Search: