comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Still missing features in IDL 8
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Still missing features in IDL 8 [message #73382 is a reply to message #72898] Thu, 04 November 2010 16:29 Go to previous messageGo to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
Lists and hashes, while very welcome (!), are somewhat cumbersome to
use with out some syntactic sugar along the lines of what has been
discussed. In addition to:

list[1,2,3]

for a list/array containing another list/array, containing another
list/array, we need, e.g.:

list[3,'foo',2:5]

for a list containing a hash or structure, containing an array or
list. Currently you must use

(list[3])['foo']

A better syntax, if it could be arranged, would be:

list[1][2]

or

list[3]['foo']

Even better if these could function correctly on the LHS of an
assignment.

I'm actually surprised the analogy of hashes with structures wasn't
expressed directly, ala:

list[3].foo

... but that of course brings in the new (and in my opinion
unnecessary and in this case, deleterious) conflation of "." with "-
> ".

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: modify the attribute value within a tag container
Next Topic: Re: how to calculate latitude and longitude from range and direction(azimuth and elevation)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 23:43:52 PST 2025

Total time taken to generate the page: 1.52089 seconds