RFC: reference counted Throwable
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Sep 19 19:20:17 PDT 2014
On 9/19/2014 6:48 PM, Andrei Alexandrescu wrote:
> On 9/19/14, 6:18 PM, Walter Bright wrote:
>> Having a compiler switch to change the behavior of every module in
>> incompatible ways would be a disastrous balkanization. It has to be done
>> in such a way that the ARC and the existing exceptions can coexist.
>
> Could you please elaborate why the disaster? -- Andrei
>
1. Every library for D will have to come in two versions. One which works, and
the other is likely untested. This will divide the D community in half.
2. RC and GC engender different styles of programming. The idea that one can
successfully switch between them with merely a compiler switch is a fantasy. You
cannot write non-trivial programs that function well and pay no attention to how
memory management is done.
More information about the Digitalmars-d
mailing list