smartgo: I wish for a Go-like language with Rust-like pointers
iio.ie·3h

# smartgo: I wish for a Go-like language with Rust-like pointers

I’m using Go now for over 5 years and I really like it. But the properties of Rust’s model are quite seductive:

  • No GC, no runtime.
  • More optimization opportunities compared to C-like languages thanks to the lack of aliasing for anything writable.
  • Race-free coding by default. I tried learning Rust a few times but I always failed to get traction in it. I like that Go’s structure and idioms are simple so it doesn’t require advanced IDEs to be productive with it.

For instance you cannot define new types within a type. You can have only top level types. And for functions you can only have top level functions or methods on a type. No deeply nested structures. Those always make my head hurt because they are often …

Similar Posts

Loading similar posts...