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

Yeah I actually haven’t used the pattern much myself, so I started to doubt the relevance. Once you start having multiple separate monostates implementing the same interface, and also limit their creation/instantiation in the sense that the code that uses the monostate objects is separate from the code that creates them, the difference to regular objects/classes becomes a bit murky.


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

Search: