2 ms·
You can do it either way in D. It's nice to have a choice! I use both methods, depending on the context.
by WalterBright 2y ago
You can do it either way in D. It's nice to have a choice! I use both methods, depending on the context.
- mst 2y agoSeems like "if it's obvious where it came from, use the unadorned name, if it'll be non-obvious to a future reader, use the more explicit form" is a solid heuristic and letting the programmer decide is a feature. (it might be worth having some sort of lint option that will flag using the non-explicit form because I can see large multi-developer projects finding it preferable to add 'use the explicit form' to their local coding style ... but I don't have a dog in this fight so 'free thought, worth exactly what you paid' applies ;)