Import concerns revisited

Derek Parnell derek at psych.ward
Wed Jul 12 16:04:51 PDT 2006


On Thu, 13 Jul 2006 05:05:22 +1000, Walter Bright  
<newshound at digitalmars.com> wrote:

> Derek Parnell wrote:
>> Oh for Bob's sake ... you mean the primary purpose of D is to write  
>> sample programs and examples? How did I miss that!!?? I thought it was  
>> to be a real language to write commercial applications with rather than  
>> an educational tool/toy. Sorry I misunderstood.
>
> I didn't mean it's useful to make D a language to teach people about  
> programming. I meant it's useful for teaching D to people.
>
> It's not always true, but languages that are less wordy in their example  
> code tend to be picked up faster. People's first projects in D aren't  
> going to be large, complex, professional products. They'll want to just  
> try it out on something simple. That bar should be as low as reasonable.

I understand your desire to not 'frighten' new comers away. My concern is  
that your "low as reasonable" seems to encourage poor programming  
practices. Can you provide an example where the 'import' and 'visibility'  
ideas being brainstormed at the moment would force example code to look  
scary? At worst, someone might have to add 'public { ... }' somewhere.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list