Re: fearless v0.0.1 - shared made easy (and @safe)

2018-09-18 Thread shfit via Digitalmars-d-announce

On Tuesday, 18 September 2018 at 17:34:10 UTC, 12345swordy wrote:
On Tuesday, 18 September 2018 at 17:20:26 UTC, Atila Neves 
wrote:

The `shared` keyword currently means one of two things:

1. You can use core.atomic with it
2. It's some struct and you BYOM (Bring Your Own Mutex)

[...]


Why is this is an external 3rd party library isn't of the 
standard library?


-Alexander


Agreed, this is great!


Re: Copy Constructor DIP and implementation

2018-09-17 Thread shfit via Digitalmars-d-announce
On Monday, 17 September 2018 at 19:10:27 UTC, Jonathan M Davis 
wrote:


We're talking about introducing an attribute that should be 
unnecessary, which will be annoying to use, and which will be 
error-prone given the bugs that you'll get if you forget to 
mark your copy constructor with it. And it's all to avoid 
breaking a theoretical piece of code that I would think that we 
could all agree is extremely rare if it exists in any real D 
code base at all. Simply using a transitional compiler switch 
like we have with other DIPs would make _way_ more sense than 
burdening the language with an unnecessary attribute that's 
just going to make it easier to write buggy code. This is 
clearly a case of making the language worse long term in order 
to avoid a theoretical problem in the short term.


- Jonathan M Davis


Completely agree.