Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
revskill
on July 22, 2024
|
parent
|
context
|
favorite
| on:
What's the point of std:monostate? You can't do an...
Is it like a singleton without any method ?
masklinn
on July 22, 2024
[–]
Since it doesn’t have any data either (hence mono
state
) 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: