3 ms·
As I was reading I was thinking High C looks a lot like D! Though D still has no named parameters :D (I know it's in the works).
by brabel 3y ago
As I was reading I was thinking High C looks a lot like D!
Though D still has no named parameters :D (I know it's in the works).
- WalterBright 3y agoDennis Korpel has nearly finished the named parameters. Yes, rest does look like D, such as nested functions! C still doesn't have nested functions. Once you get accustomed to them, they are really useful.
- brabel 3y agoLooking 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.