`void main() @nogc { /* ... */ }`
Done.
I've written a log of `@nogc` code lately.
Subsetting languages (and comunities) usually doesn't end well...
[0] http://dconf.org/2016/talks/watson.html
[1] https://wiki.dlang.org/Language_design_discussions#Automatic...
[2] http://www.digitalmars.com/d/archives/digitalmars/D/ARC_in_D...
This does seem to come up sometimes. I'm wondering if it makes sense to add a "end-vision for GC-less D" section to the D GC documentation, now that there are various undertakings to make it easier. Might also help with finding volunteers that care about @nogc to help out with various bits.
You can delete objects early, or call GC.disable
If you have called GC.disable, the collector becomes `return;`. Sure, the GC function is called, but it doesn't do anything, it just immediately returns.
When I want a GC'd C-like I use Go.
D has to find a space between those two for me and a lot of other people.
I don't dislike D. I think D has a LOT of great work done in it. I just really want all my libraries to be able to be used without GC. And I'm not sure it's really feasible to have each foot in either world and not just get split down the middle.
Can someone argue against this worry? It's literally the only thing stopping me spending more time with D.
Also I've been coding in Ada (lord help me) for fun. Contracts are interesting.