On 1/4/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote:
>  I think both syntaxes have merit, and I'd be very happy to see more replys
> about which syntax other people prefer.

I'm not sure if hashes (maps) would be useful enough to be implemented.

Anyway, there seems to be another approach, if search efficiency is
not a big issue:

fish> set arr x y z
fish> echo $array
x y z
fish> set arr[foo] bar
fish> echo $arr[foo]
bar
fish> echo $arr
x y z bar
fish> indeces arr
1 2 3 foo

You might even like to refer to an element by two names:

fish> echo $arr[4]
foo
fish> # is shorthand for
fish> # echo $arr[(indeces arr)[4]]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to