Mac Apps That Use Garbage Collection Must Move to ARC

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 23 11:06:18 PST 2015


On 2/23/15 10:50 AM, Russel Winder via Digitalmars-d wrote:
> On Mon, 2015-02-23 at 10:08 -0800, Andrei Alexandrescu via Digitalmars-d
> wrote:
> […]
>>
>> Urgh. Product types masquerading as sum types. Give me a break will ya.
>> -- Andrei
>>
>
> Uuurrr…. no. As of today I program with the stuff and it works. Coming
> from Java and Python, I am an exceptions oriented person, but Go has
> internal consistency on it's attitude to error reporting and you get
> used to it. Actually, the obsession with error handling at the point of
> occurrence does lead to getting systems that are less prone to
> unexpected errors. This is pragmatism not theory. And being honest most
> programmers would not know what product or sum types were. Nor would
> they care. Even if perhaps they ought to.
>
> When I worked with C, I abhorred the, to me, dreadful error codes
> system. Go really does allow it to work without the same pain.

This is a misunderstanding. I was referring to Go's confusion of sum 
types with product types. -- Andrei



More information about the Digitalmars-d mailing list