|
|
|
|
|
by simgt
108 days ago
|
|
Thanks for sharing, it's indeed a great way to quickly see what a language has to offer. From what I understand, the main innovation of Lobster here is that `class Foo` is a boxed type, while `struct Bar` will be inlined. I'm not sure I see how that's an improvement over using either `Foo` or `Box<Foo>` on instantiation. It also does reference counting by default, and tries to optimise it out at compile time by assigning a single owner and borrow. We often see complains that Rust's ownership puts a lot of burden on the programmer, but there is really a point at which it clicks and we stop having to fight the borrow checker almost entirely. |
|
That said, it be easy to have annotations to force the other use case, just so far that has not been needed :)