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

Is it like a singleton without any method ?


Since it doesn’t have any data either (hence monostate) that’s not a useful distinction. It’s a singleton in the same way 1 is a singleton.




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

Search: