Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pebal
on March 17, 2023
|
parent
|
context
|
favorite
| on:
Retiring a favourite C++ joke
C++ does not have garbage collection in the standard library, just as shared_ptr was not part of the standard library in the past. You can currently have optional garbage collection in C++:
https://github.com/pebal/sgcl
jb1991
on March 17, 2023
[–]
C++ can do pretty much anything, but that doesn't mean that it’s typical to do so. In practice, you will never see a garbage collector in C++.
pebal
on March 17, 2023
|
parent
[–]
You may be surprised. Herb Sutter wants to add optional GC to C++ 'syntax 2'.
jb1991
on March 18, 2023
|
root
|
parent
[–]
Sitter’s idea in that is a different matter entirely.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: