List Object
Posted: Tue Aug 13, 2013 6:37 pm
In the Number of Items discussion (http://forums.runrev.com/viewtopic.php?f=66&t=16383) runrevmark mentioned that they are working on a list object of some kind for future implementation. Since so much of what I do is dealing with lists of multiple items on multiple lines I am curious to find out more about what is planned in this area, and what some of the thinking around this is. For example, how would this interact/compare with arrays, and what kind of operations would be available for comparing lists, processing lists, intersecting lists, etc. There are a bunch of things that I would like to be able to do more easily (and in a more readable, easy to follow fashion) than what I am doing today with arrays and the current text lists with delimiters. For example, it would be great to be able to do something like:
put "xxxx" into item 5 of the lines of list "myList" (or put "xxxx" into item 5 of every line in list "myList" - however the syntax worked out)
and have that put the value "xxxx" into item 5 of every line in the list called "myList
It would also be great to be able to do something like
Put "xxxx" into item 5 of the lines of list "myList" where item 4 of the line is "yyyy" (or whatever the syntax end up being like)
which would only put "xxxx" into item 5 of those lines in the list where item 4 of the line is currently "yyyy"
I can do everything that I want with for each loops, and I can speed it up by carefully figuring out how to reorder the items of a text delimited list, then split and combine things into arrays and reorder the list back to the way I want it , but if a list object is going to get made, it would be nice to think about what kinds of operations should be possible and how that should work. I think that most of this stuff could end up being as fast as the array stuff is today (since I assume similar types of things would be going on behind the scenes) but it would probably be much easier for people to understand and implement, and much easier to read.
Anyway, I guess what I am wondering is as the thinking starts to happen about lists, where will I (a person that can't read C, or even begin to understand github) be able to go and read about the thinking that is going into the development of the list object and make my suggestions about how I would like it to work? I figured that posting in this forum was the best first step.
put "xxxx" into item 5 of the lines of list "myList" (or put "xxxx" into item 5 of every line in list "myList" - however the syntax worked out)
and have that put the value "xxxx" into item 5 of every line in the list called "myList
It would also be great to be able to do something like
Put "xxxx" into item 5 of the lines of list "myList" where item 4 of the line is "yyyy" (or whatever the syntax end up being like)
which would only put "xxxx" into item 5 of those lines in the list where item 4 of the line is currently "yyyy"
I can do everything that I want with for each loops, and I can speed it up by carefully figuring out how to reorder the items of a text delimited list, then split and combine things into arrays and reorder the list back to the way I want it , but if a list object is going to get made, it would be nice to think about what kinds of operations should be possible and how that should work. I think that most of this stuff could end up being as fast as the array stuff is today (since I assume similar types of things would be going on behind the scenes) but it would probably be much easier for people to understand and implement, and much easier to read.
Anyway, I guess what I am wondering is as the thinking starts to happen about lists, where will I (a person that can't read C, or even begin to understand github) be able to go and read about the thinking that is going into the development of the list object and make my suggestions about how I would like it to work? I figured that posting in this forum was the best first step.