Re: DMD Beta 2.105.0

2023-07-17 Thread IchorDev via Digitalmars-d-announce

On Monday, 17 July 2023 at 19:26:04 UTC, Witold Baryluk wrote:

On Sunday, 16 July 2023 at 17:26:03 UTC, Iain Buclaw wrote:
Glad to announce the first beta for the 2.105.0 release, ♥ to 
the 34 contributors.




Thanks for the beta Iain.


Functions can no longer have enum storage class


This looks like a breaking change that can affect people. There 
should be a deprecation (6-12 months) period to give people 
notice to fix their code, without immediately breaking code.


https://github.com/dlang/dmd/pull/15405 and 
https://issues.dlang.org/show_bug.cgi?id=13063 show there was 
no discussion on deprecation, despite authors knowing that 
there is code in the wild using this.


It does not affect me, but in light in recent discussions, it 
again gives a bad picture of D and maintainability of code 
developed in D.


You’re correct about the deprecation cycle being wrong, but 
please remember that “enum” on a function is just a more 
confusing way of writing “auto”. Anyone using it *probably didn’t 
understand* what it did—nothing much.


Re: DMD Beta 2.105.0

2023-07-17 Thread Witold Baryluk via Digitalmars-d-announce

On Sunday, 16 July 2023 at 17:26:03 UTC, Iain Buclaw wrote:
Glad to announce the first beta for the 2.105.0 release, ♥ to 
the 34 contributors.




Thanks for the beta Iain.


Functions can no longer have enum storage class


This looks like a breaking change that can affect people. There 
should be a deprecation (6-12 months) period to give people 
notice to fix their code, without immediately breaking code.


https://github.com/dlang/dmd/pull/15405 and 
https://issues.dlang.org/show_bug.cgi?id=13063 show there was no 
discussion on deprecation, despite authors knowing that there is 
code in the wild using this.


It does not affect me, but in light in recent discussions, it 
again gives a bad picture of D and maintainability of code 
developed in D.