How I use D
Cym13
cpicard at purrfect.fr
Mon Jun 29 12:46:56 UTC 2020
On Monday, 29 June 2020 at 12:18:02 UTC, Guillaume Piolat wrote:
>
> I'll bite:
>
> I've been defending:
> - unsafe by default,
> - throw by default,
> - impure by default,
> - mutable by default
>
> for years. To me those defaults are the right ones, and it
> warms me up that, as it seems, your D usage would be made
> _almost impossible_ if the permissive default changed to a
> strict one.
>
> I've been in a similar situation where you have to create an
> internal tool as fast as possible because of limited political
> support, and all those features - that are completely rational
> and acceptable in the right context - may reveal a liability in
> the trenches.
>
> So I hope people will keep the important use cases of _bad
> programs_, may I say in mind when improving D.
I have mixed feelings about that. On one hand I absolutely agree
with you, if these features were in place D would probably not be
nearly as useful to me as it is now.
On the other hand, I spend my days exploiting security issues and
I think that these features would be effective to fight real bugs
that have real consequences. I don't want to be suject to these
limitations, but if more people were subjected to them I would
have a harder time finding bugs which is good.
It wouldn't solve all issues of course (most issues are at a much
higher level such as forgetting to protect a webpage with
authentication) but it would help.
(Even if I'd be stuck)
More information about the Digitalmars-d
mailing list