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

But you can still provide a pure interface. If you implement Dijkstra in an imperative fashion, with lot's of mutations etc., as long as you don't have any external side effects (changing global variables or input variables) and return an immutable result, the function is pure for all practical purposes, even though it is implemented in an imperative fashion/style.


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

Search: