Re: rand(repeat(num_subjects, num_subjects))

new topic     » goto parent     » topic index » view thread      » older message » newer message

-----Original Message-----
De: Andy Kurnia <akur at DELOS.COM>
Para: EUPHORIA at cwisserver1.mcs.muohio.edu
<EUPHORIA at cwisserver1.mcs.muohio.edu>
Fecha: sábado 27 de junio de 1998 11:35
Asunto: rand(repeat(num_subjects, num_subjects))


>[<daber at PAIR.COM> Re: Various subjects]
>>I don't know Perl, but languages like Lisp and Scheme use "lists" that are
>>just like our sequences. If my memory dosn't fails Rob said once that one
of
>>Euphoria "inspirations" was Lisp, or alike functional language.
>
>    Right. I like Euphoria's way to manipulate sequences. They are VERY
>    easy compared to LISP's, which I believe are composed of three
>    functions that can only return
>        length(x)
>        x[1]
>        x[2..length(x)]
>    and you must use recursion to find e.g. x[3]. Right? (I haven't really
>    used LISP = Lots of Irritating Silly Parentheses.)


That's what I like most of Euphoria. With Euphoria sequences and slicing you
can easily create any data structure you want. In Scheme you have only 'car'
and 'cdr' functions that gives you, as Andy pointed, x[1] and
x[2..length(x)] respectivly. You must also use extensive (perhaps the only
way) use of recursion, making very large lists maipulation quite propense to
stack overflows. For me Euphoria is great because you can make it as
<insert-your-prefered-programming-paradigm> as you want.

Regards,
    Daniel   Berstein
    daber at pair.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu