Rust is more like: unless you can mathematically prove to me that this is equivalent to a nut there is no ducking way Iβll ever let you compiled this.
And then still segfault
https://github.com/Speykious/cve-rs/blob/main/src/segfault.rs
IME Rust programs crash at about the same rate as other languages. βRewrite everything in Rustβ hasnβt made much of a difference for me, so far.
StackOverflow: Question closed as duplicate. Someone else already asked whether or not something is a nut.
C# should actually be βWhat Java said, except itβs ICrackable
β.
No, actually C#'s answer should be: βWhat Java said - hold on, what Python said sounds good too, and C++'s stuff is pretty cool too - letβs go with all of the above.β
C#, or as I like to call it βthe Borg of programming languagesβ.
I got my first software developer role last year and it was the first time Iβd written C#, I was more TypeScript. Now we use both but I must say I really like C# now that Iβm used to it.
C can STRUCTurise classes tho
Yeah, you can technically write object oriented code in C. Or any other language. Just that actual OOP languages provide a nicer syntax and compile time checks.
Rust is kind of a good example of this. Itβs technically not an object oriented language, but the trait system brings it close.
In Java, itβs not called the Crackable
interface.
Itβs the Nuttable
interface.
Provided your method specifies a strongly bound type you can ensure that you get your nut.
void dischargeNut(T extends Nut) { ... }