| Re: Arrays: strange feature ?! [message #19969 is a reply to message #19877] |
Thu, 04 May 2000 00:00   |
Luca Fini
Messages: 2 Registered: March 2000
|
Junior Member |
|
|
On Wed, 3 May 2000, Nicolas Decoster wrote:
> More I use IDL, more I found strange features.
me too.
> The one I want to talk
> about is the way you create multidimensional arrays. Look the following
> IDL commands sequence:
>
> IDL> print, [[1, 2], [3, 4]]
> 1 2
> 3 4
> IDL> a = [1, 2]
> IDL> b = [3, 4]
> IDL> print, [a, b]
> 1 2 3 4
>
> Why the same notation has two meanings?
IDL is clearly a language grown by piling up things with no previous
design. Its syntax is crazy and some characteristics are very annoying.
It is very nice for quick and dirty programming, but reallya mess for
large scale projects.
l.f.
------------------------------------------------------------ --------------
-- ) Luca Fini Tel: +39 055 2752 307
___ |\ Osservatorio Astrofisico di Arcetri Fax: +39 055 2752 292
/ | | |-_ L.go E.Fermi, 5 +-----------------------------------------
(___|___//___) 50125 Firenze / WWW: http://www.arcetri.astro.it/~lfini
(_) (_) Italia / e-mail: lfini@arcetri.astro.it
-----------------------------+------------------------------ --------------
In a world without fences - who needs GATES?
|
|
|
|