Isn't `each` too much of a good thing?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu Sep 17 20:23:43 UTC 2020


On Thursday, September 17, 2020 2:07:35 PM MDT H. S. Teoh via Digitalmars-d 
wrote:
> That bug has been filed for years, I wish somebody would take it up and
> push it in. :-/  That has been a bad idea for years and yet it still
> persists.
>
>   https://issues.dlang.org/show_bug.cgi?id=15932

I've brought it up to Walter before. As I understand it, his opinion is that
scope solves the problem. And while I agree that it helps, I still think
that it would be better to just disallow the implict conversion entirely and
require that it be explicit. That being said, I don't expect that we'll ever
see such a change in D2, much as I think that it would be worth it.

- Jonathan M Davis





More information about the Digitalmars-d mailing list