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

It's used very sparingly in the wild, for cases where you need a bunch of classes that are set up similarly, and ordinary subclassing still results in too much boilerplate.

For example... you might make a class for each HTML tag in an HTML processor, or each drawing command in an SVG processor. My experience is that it's not hard to debug, because all that you're doing is getting rid of some boilerplate.



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

Search: