3 ms·
I wouldn't compare a WIP borrow checker, just added some months ago, against Rust. However, where it's the bigger and unique thing that D haves. Fast and very
by Zardoz84 6y ago
I wouldn't compare a WIP borrow checker, just added some months ago, against Rust.
However, where it's the bigger and unique thing that D haves. Fast and very powerful metaprogramming. Can do things like parsing a XML or JSON at COMPILE TIME and generate code. No body catches how powerful is this ? For example, imagine parsing a gtk-build /glade XML and generating the GUI code at compile time, instead parsing it at runtime.
- ponce 6y agoThis is really quite common thinking in D. I was writing a library and a contributor popped out of nowhere. He didn't knew D. The first patch it suggested was about parsing some JSON at compile-time. It turned out std.json the stdlib parser was able to parse at compile-time in CTFE context. So, the contributor parsed JSON at compile-time without his knowledge, without really knowing D, and the fact it worked was accidental (since the parser was n't specially designed to do that, but could).