|
|
|
|
|
by pjmlp
1831 days ago
|
|
> In Rust you can do it only with explicit `unsafe`; otherwise the typesystem tracks that for you. Exactly, so I can continue this charade by creating such example. Rust is not a magic bullet, and just like with your "proof" I can provide similar "proof" with unsafe. Or I can provide an example in D, with has a GC and C++ like RAII, or Swift that also has a GC (ARC is a GC algorithm) and C++ like RAII as well. I have been playing this game about explainging how to do deterministic resource management in GC enabled languages since I learned Oberon in 1995. It is always the same pattern. - "GC languages cannot do X" - "Actually you can partially achieve X with Y" - "Yeah, but ....." So whatever. |
|