Hacker News new | ask | show | jobs
by Panzerschrek 17 days ago
> manual memory management

Ergo memory leaks.

> arena and pool allocators

A poor's man replacement for RAII.

> go style err!=nill style exception handling

Literally the most criticized part of Go.

> first class support for defer statements

Again, defer is used, because there is no RAII.

> consider it

No, thanks. I will continue using Rust or even C++. I don't want wasting time debugging memory leaks and corruptions.

1 comments

there is definitely a tradeoff here: would you rather hunt for memory leaks or hunt for references (to satisfy the borrow checker).

some of really want to do it the old way with arena/pool allocators than guarantees at the compile time. odin's target audience is not rust programmers, it's C programmers who want modern conveniences.