3 ms·
When would you want to have an interface such that nothing about the return type of a function is known to the outside world? I'm genuinely asking; I just don'
by skohan 6y ago
When would you want to have an interface such that nothing about the return type of a function is known to the outside world? I'm genuinely asking; I just don't understand the utility of this concept.
- mumblemumble 6y agoI don't think anyone's trying to argue about whether it's better or worse than the Rust concept. Just that it's subtly different.
- skohan 6y agoI'm not interested in comparing it to the rust concept. I'm just curious why this is something people find valuable in D, and why another commenter would call it a feature D "would be ruined without"
- bobthebuilders 6y agoThe commentor is just mistaken. The two do the exact same thing.
- skohan 6y agoThat's fine, but I'm not interested in comparing them and I still don't understand what the benefit is