Lisette - A little language inspired by Rust that compiles to Go

It looks nice, yesβ€”this could be a better version of Go. It has elements of Rust and Vlang. A very interesting compromise.

https://lisette.run/

#golang #rust #vlang

Lisette β€” Rust syntax, Go runtime

Little language inspired by Rust that compiles to Go.

@leobm why not go all-in into Rust?
@psyhackological @leobm because rust doesnt β€œgo”, thats why
@psyhackological I only partially understand the
hype surrounding Rust. It’s certainly a nice language, with good error handling and so on. But it’s also very complex; Go is much simpler and perfectly adequate for 90% of the requirements one has for a programming language. I’m only a limited fan of Rust; if I needed full control over memory, I’d probably go with #ziglang instead.
@psyhackological But yes, there are certainly some things that could be improved in Go. I actually really like the way error and optional handling works in #vlang or #ziglang.
@leobm Go's error handling is the most simple cave man like approach as it can get. I like ? operator in Rust though.
@psyhackological With Rust, I still feel like I’m spending more time wrestling with the type system than actually coding and getting things done. I often have similar feelings with Haskell, and sometimes with Scala too. Maybe I’m just not smart enough for Rust πŸ€·πŸ»β€β™‚οΈ
@leobm type system is actually Rust's super power and also in Go it shouldn't be neglected (or Haskell / Scalla). 90% of problems (and bugs) in my daily job comes from improper type value and missed validation. The only thing I can complain (and Rust Foundation team are aware of) are lifetimes. There is no struggle in Go as it has built in GC in each binary. Rust must be "tip top" however it's possible to create memory leak.
@leobm Rust approach is to eliminate confusion, have a good practices and get rid off garbage collector. I think they did excellent approach with these. However I do agree sometimes it's overkill for some simple scripts or projects. Once the compexity goes up Rust can really shine. Yet I see Go's simplicity as a nice thing and to be honest choice between them is mostly - Rust hard, Go easier (and faster to write).
@leobm not β€œbetter” but useful when you need more expressive types, on case-by-case basis.