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

the clojure loop construct is often cleaner than code written to be tail recursive


And often faster: https://medium.com/hackernoon/faster-clojure-reduce-57a10444...

Yet it’s always noted as code smell associated with “inexperienced candidates” in interviews.

For that matter, first and last too: https://medium.com/hackernoon/faster-clojure-reduce-57a10444...

The amount of paired programmers suggesting changing nths to firsts and lasts is demoralizing.




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

Search: