3 ms·
Native Option/Result types + algebraic data types would solve quite a few complaints I have about Go
by shepherdjerred 2y ago
Native Option/Result types + algebraic data types would solve quite a few complaints I have about Go
- egeozcan 2y agoIt would solve many of my complaints as well. But, to be honest to myself, I don't think anything will be too different in my day-to-day programming, nor that I would produce better code with less bugs.
- shepherdjerred 2y agoAdts eliminate certain kinds of bugs like nil pointer dereferencing, and, if you model your types correctly, makes invalid states unrepresentable