article comparing Rust and Zig, many points relevant to D

VF nonexistent at poomail.lol
Wed Mar 10 17:59:56 UTC 2021


On Tuesday, 9 March 2021 at 21:06:46 UTC, Imperatorn wrote:
> On Tuesday, 9 March 2021 at 20:56:12 UTC, H. S. Teoh wrote:
>> On Tue, Mar 09, 2021 at 04:48:28PM
>
> 💡
>
> Great summary! I don't understand why D isn't used more. Maybe 
> it's *too* flexible for some people? 🤔

I think the biggest reasons are bugginess and instability. Those 
are my reasons for wanting to get out of D, and also feature 
bloat. I want a simpler language, but am not seeing good 
options...

Speaking of bugginess, here's the latest bug that I noticed (dmd 
2.094):

mixin template X() { int x; }

struct A { mixin X; int x; } // <- that compiles!

int main() {
     import std.stdio;
     writeln(A.sizeof);       // => 8
     writeln(A.id.offsetof);  // => 4
}


More information about the Digitalmars-d mailing list