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

The simplifying assumption that all tree nodes have the same type and the same function should be called on them seems unrealistic.

This kind of imperative iteration seems better served by the traditional visitor design pattern: more verbose (more explicit, not more complex) and more general.



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

Search: