2 ms·
Looking forward to named parameters, they help so much when functions take more than 2 or 3 parameters. By the way, I've been doing some D lately, just as a hob
by brabel 3y ago
Looking forward to named parameters, they help so much when functions take more than 2 or 3 parameters. By the way, I've been doing some D lately, just as a hobby, but it's been really nice! I had no idea before that D had so many features (I would say it even has too many - but still quite nice).
- WalterBright 3y agoD does in some ways have too many features. We'd like to prune out some of them. I agree that named parameters can be very helpful. For example, if there are three bool arguments, it makes calls like: test(true, false, false); into: test(format: true, output: false, skip: false); which makes it much more readable.