A few notes on choosing between Go and D for a quick project

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 17 04:39:02 PDT 2015

On Tuesday, 17 March 2015 at 08:46:52 UTC, Almighty Bob wrote:
> On Tuesday, 17 March 2015 at 07:15:17 UTC, Walter Bright wrote:
>> On 3/16/2015 4:29 AM, ninja wrote:
>>> This. Figuring out the return types in the examples was a 
>>> daily struggle in the
>>> first few weeks.
>> When Voldemort types are returned, they must be by auto. The 
>> user isn't supposed to know what the return type is, just how 
>> to use it.
> How do you keep it around if you cant declare a member to hold 
> it?
> It's all well and good explaining the reason for them but it 
> doesnt void the fact that they are a PITA if you say want to 
> use cvsReader to parse some records and keep the results as a 
> class member.

typeof still works for voldemort types. The point isn't "You 
can't declare variables with a voldemort type" it's the subtly 
different "You can't declare variables with an *specific* 
voldemort type".

More information about the Digitalmars-d mailing list