Phillip,

Thanks for pointing that out. I'll add a comment either in the code or around 
it tonight.   As a general observation the examples aren't well commented.  
Also, a number of the examples are really not very icon-like being just simple 
translations from things like javascript (I fixed one rot13).  Another reason 
for doing this was to emphasize what is really different between Icon and 
Unicon.  

I understand your dislike.  Unfortunately the practical alternatives are not 
ideal either.  In part it's a limitation on the structure of the Wiki.   The 
Wiki founder has been helpful and I'd be happy to bounce anything off him if 
it's not clear that it would work.  I'm all ears if people have a better 
thoughts. 

        * Duplication just seems nasty
        * Possibly putting Unicon and Icon together under a single langauge tag 
(which or both) and having separate icon and unicon contributions.  
(Unfortunately we loose all of the nice reports on tasks needing attention, 
tasks not implemented.
        * Put the Unicon and Icon material side by side but there is a risk of 
editors (or future automation) resorting things.  We could do it artificially 
with a construct like Icon-Unicon that sorted them together.
Ultimately this is intended to show off Icon/Unicon to others and it needs to 
be clear.

I'll probably start collecting some of this correspondence in the language 
discussion pages.

Thanks
David




________________________________
From: Phillip <[email protected]>
To: [email protected]
Sent: Mon, April 5, 2010 11:21:35 AM
Subject: Re: [Unicon-group] Rosetta Code - Unicon / Icon consistency edit - fyi

The loop/break program does not perform identically under Icon and Unicon: 
under Unicon, the default random "?" produces a different sequence without 
initialization while the Icon version prduces an identical sequence.

I suspect we are going to have this kind of problem with a number of 
Unicon functions where enhancements may or may not be evident in the 
code. As the examples improve, we may want to demo more clearly the 
enhancements.

So...please, either comment the code and/or put it back under Unicon.

As an old natural language student, I developed a servere dislike of 
looking up a word and being directed to a different part of the 
dictionary. So while I appreciate the motivation for the Icon/Unicon 
cross-references, I don't like them.

--Phillip

  On Sun, 4 Apr 2010, David Gamey wrote:

> Folks,
>
> I just had a very quick go over the Icon and Unicon examples on Rosetta Code. 
>  This pass was mainly to get some consistency.
>
> One task was to eliminate duplication by using back references from Unicon to 
> Icon where the code works in both.  The following markup is used.
>
> =={{header|Unicon}}==
> See [[#Icon|Icon]].
>
> The following were Icon programs but listed as Unicon only.  They are now 
> Icon with references from Unicon to Icon.
>
>     * http://rosettacode.org/wiki/Ackermann_function
>     * http://rosettacode.org/wiki/Comments
>     * http://rosettacode.org/wiki/Loops/Break
>     * http://rosettacode.org/wiki/Hello_world/TextUnicon entries were added 
> back referencing to Icon for the following:
>
>     * http://rosettacode.org/wiki/Associative_arrays/Creation
>     * http://rosettacode.org/wiki/Apply_a_callback_to_an_array
>     * http://rosettacode.org/wiki/Evolutionary_algorithm
>     * http://rosettacode.org/wiki/Generic_swap
>     * http://rosettacode.org/wiki/Greatest_element_of_a_list
>     * http://rosettacode.org/wiki/Higher-order_functions
>     * http://rosettacode.org/wiki/Hostname
>     * http://rosettacode.org/wiki/Input_loop
>     * http://rosettacode.org/wiki/Loops/Infinite
>     * http://rosettacode.org/wiki/Loops/While
>     * http://rosettacode.org/wiki/Roots_of_unity
>     * http://rosettacode.org/wiki/Sieve_of_Eratosthenes
>     * http://rosettacode.org/wiki/Sorting_algorithms/Bogosort
>     * http://rosettacode.org/wiki/Sorting_algorithms/Permutation_sort
>     * http://rosettacode.org/wiki/Sum_of_a_series
>     * http://rosettacode.org/wiki/Sum_of_squares
>     * http://rosettacode.org/wiki/Synchronous_concurrency
>     * http://rosettacode.org/wiki/Variadic_functionDavid

------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
Download Intel&#174; 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