Re:More Memory Safety for Let's Encrypt: Deploying ntpd-rs
by pjmlp on Tuesday June 25, 2024 @03:25AM
(#40785499)
Every now and then I think about forking Go and adding something like ?, and Pascal/Modula-2 like enumerations.
However then I realise, why bother, and go back into using C#, Java, D instead.
Re:More Memory Safety for Let's Encrypt: Deploying ntpd-rs
by hot_gril on Tuesday June 25, 2024 @02:35PM
(#40791910)
The only thing I seriously plan to use Golang for is implementing a scripting language in my spare time. Its threading model (greenthreads flexibly mapped to OS threads) is attractive for that.
In high-level code, nearly every func you write can return an error, and 99% of the time you're just going to pass the error up. Webserver will catch all and send 4xx or 5xx, for example. Exceptions are a lot more convenient and encourage solid error handling. In mid-level code, maybe you want something a little more explicit like Rust's way.