volkerwirsing@feddit.org to Technology@lemmy.worldEnglish · 5 days agoRust is Eating JavaScriptleerob.comexternal-linkmessage-square61fedilinkarrow-up129arrow-down15
arrow-up124arrow-down1external-linkRust is Eating JavaScriptleerob.comvolkerwirsing@feddit.org to Technology@lemmy.worldEnglish · 5 days agomessage-square61fedilink
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkEnglisharrow-up2·4 days agoGo is fine, but it has its flaws. I prefer Rust because: memory safety is a compiler check, not a runtime check, so you catch issues earlier locks contain their values, so you can’t accidentally do anything unsafe no nil (() is semantically different), so no surprises with contracts everything is an expression, which lends itself really well to FP concepts actual dependency management at 1.0 pretty much no runtime, so calling from another language is super easy targets WASM and microcontrollers no pointers (not exactly true) It takes longer to learn, but I’m about as productive with both now.
Go is fine, but it has its flaws. I prefer Rust because:
()
is semantically different), so no surprises with contractsIt takes longer to learn, but I’m about as productive with both now.