3 ms·
It's not just about UB, it's about the design encouraging good code and defensive programming. That includes enums, non nullability, immutability by default, et
by c-cube 5y ago
It's not just about UB, it's about the design encouraging good code and defensive programming. That includes enums, non nullability, immutability by default, etc.
- ajross 5y agoStill seems poorly captured by "if it compiles, it works", no? The point was this was marketing, not a statement of principle. Rust needs to do more of the latter and less of the former. The time for marketing was years back.
- CRConrad 5y agoIt's always hilarious how near totally amnesiac this whole industry is. People are constantly "inventing" shit that already existed many many decades ago, including all the bugs and warts, oblivious of the fixes and improvements from the decades in between. AFAICS much -- if not most? -- of the stuff Rust is being lavishly praised for now already existed in Nikolaus Wirth's original Pascal from the early 1970s.