716 karma · joined September 26, 2022
The creator has said it's not. It's compiler is in rust though. But Gleam is an entirety different language in terms of paradigms and target runtimes. It can't really replace rust
Llms solve this problem
Are you using copilot?
They did not say Zig and C++ are equivalent
I'm aware of this but i feel this is confusing. Just putting () changes semantics a whole lot
> Also, just minor pedantic comment, both C# and F# will monomorphize for struct of T
I wasn't aware thanks
I don't know, I'm not too bothered by this. If you take struct tuple and struct, Yes synctacticqlly they are different but functionally they are quite similar. You have values lying in memory. There's no reason to prefer one to the other except convenience. Program behaviour will not change. This is not the the case for fsharp classes and records and structs. Same way Fsharp has two types of lists. It also has an array type and all these are different but they look the same. In rust case they all have different names but behaviour wise they are same: data stored in contiguous memory with some differences in what you can do with them. I do like fsharp as a language but it can't go full on its promises because of dotnet. One glaring one is nulls. The language itself claims to be null safe. Except if you use dotnet types like strings. Then the compiler doesn't warn you. Honestly Kotlin does this better with non nullable types and null chaining
Rust and cargo are pretty good and only getting better. I don't really see a good use case for anything dotnet when JVM exists