4 ms·
I used to think that all languages should be garbage collected. I thought this because I thought it was the only way to make programs safe and I learned it was
by bvinc 9y ago
I used to think that all languages should be garbage collected. I thought this because I thought it was the only way to make programs safe and I learned it was actually faster than manual memory mangement. I changed my mind when I learned that GC on average causes twice as much memory usage, and higher latency and Rust managed to achieve safety without it.
I used to think that exceptions were the best way to handle errors. What changed my mind was reading about the language Spec# that Microsoft made for the Singularity project. They actually REMOVED exceptions from C# and made many compelling reasons for why they did it. The one that I remembered most was that it was difficult to rely on a function's API, of only throwing certain kinds of exceptions, when it could change so easily. I also thought that boiler plate error handling code without exceptions was too much to handle. Go and Rust showed me that it doesn't have to be so bad.