August 24, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...know if it has some gotchas, though (as I don't use RAII in D...). | |||
August 24, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...…), that's a imho bastardisation of RAII that destroys most of the benefits. Also... | |||
August 24, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...but whether your example should be called RAII is an entirely different debate, and one... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
Yeah. I've used RAII plenty in D without problems, but the fact remains that... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...code ... } // mutex is released It's still RAII, as the destructor checks to see if... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...an invalid state and thus still follow RAII paradigms correctly? The amount of bugs and... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
Throwing constructors are fundamental for making RAII work in a composable fashion. If constructors are... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
...I know, the only known bug in RAII is https://issues.dlang.org/show_bug... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
D was designed to have RAII, and it does. It's just that the implementation... | |||
August 23, 2018 General » Re: D is dead | |||
|---|---|---|---|
| |||
I completely agree with this opinion RAII is nowadays described as C++ nicest , more important... | |||
Copyright © 1999-2021 by the D Language Foundation