Andrew Clarke wrote:
> These would make sense as illustrated alternatives if Rosetta encourages 
> that, 
> but it seems the plan of this site is to solve a specific task in a specific 
> way. Depends on how /essential/ it is to have the "break" operator as part of 
> the solution; it is asking for a loop with a break...

I didn't see mention of that in the actual problem statement and wonder 
how languages w/o a 'break' handle it.  When I get a chance I'll look
through other languages solutions to see how closely the "specific task 
in a specific way" is really adhered to.  It grates on my nerves to have
to give an awkward solution when a cleaner one that takes better
advantage of the language exists (as awkward solutions give others a 
poor impression of the language)!

> Interesting now the question (this particular one) is couched in terms that 
> make sense for "ordinary" languages. If the question was to NOT print the 
> first number if it's found to be 10, it would be even easier
> 
>     while write(10 ~= ?20 - 1, "\n", ?20 - 1)
> 
> Funny how language influences the sort of question you think to ask!

No kidding!

-- 
Steve Wampler     {[email protected]}
The gods that smiled upon your birth are laughing now. -- fortune cookie

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to