News for hackers. Stuff that matters.
Re:Ask HN: Programming – what changed your mind about a lang... by bvinc on Thursday November 02, 2017 @10:55PM (#15616362)
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.

There are no comments on this comment yet.