For in list

Works in ACF and to be honest I did expect it to work in luceeOn Jun 2, 2015 5:11 PM, “Mark Drew” <@Mark_Drew> wrote:

Not sure why? Lists are not s primitive collection. Just a string.

Try

myList = listToArray(“1,2,3,4,5”) ;

for(item in myList){
writeOutput(item);
}

Mark Drew

  • Sent by typing with my thumbs.

On 2 Jun 2015, at 05:28, Paul Kukiel <@Paul_Kukiel> wrote:

Kinda expected this to work?

myList = “1,2,3,4,5” ;

for(item in myList){
writeOutput(item);
}


Paul Kukiel


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAHX0TS7hf67-gtnU4BmddJvTnTA0LJyrysAvpz8z1AmAYsUEUg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAHX0TS7hf67-gtnU4BmddJvTnTA0LJyrysAvpz8z1AmAYsUEUg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/A8BD07DC-4364-4BC7-942F-86E8272CAF09%40gmail.com
https://groups.google.com/d/msgid/lucee/A8BD07DC-4364-4BC7-942F-86E8272CAF09%40gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I’ll double check the version but it was from Jordan’s installers Friday
night.On Jun 2, 2015 3:00 PM, “Igal @ Lucee.org” <@Igal> wrote:

it does since 4.5.1.016…
[LDEV-47] - Lucee

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/lucee/duJ65996rqQ/801B_gdkPGkJ

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 6/1/2015 9:28 PM, Paul Kukiel wrote:

Kinda expected this to work?

myList = “1,2,3,4,5” ;

for(item in myList){
writeOutput(item);
}


Paul Kukiel

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAHX0TS7hf67-gtnU4BmddJvTnTA0LJyrysAvpz8z1AmAYsUEUg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAHX0TS7hf67-gtnU4BmddJvTnTA0LJyrysAvpz8z1AmAYsUEUg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/556D3842.3080109%40lucee.org
https://groups.google.com/d/msgid/lucee/556D3842.3080109%40lucee.org?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Sorry. Hadn’t memorised all tickets.

It’s always best to be informed before putting one’s oar in, I find. Still:
I know I am an outlier in that regard.

Still a stupid idea.

No. Dogmatically going “it’s just a string”, and being in denial that CFML
has a concept that is a string-based collection is what’s stupid.On Tuesday, 2 June 2015 08:46:47 UTC+1, Mark Drew wrote:


Adam

@Mark

I personally agree with you, but the driving force behind fixing this
issue was ACF compatibility.

if anything, I would prefer

for (ch in someString) { /* ... to iterate over the characters of

the string … */ }

but then compatibility would completely break…

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 6/2/2015 12:51 AM, Mark Drew wrote:

It was just not very performant. I have seen code that had 100’s of
ListGetAt all over the place in one template hence my negative
attitude to use lists as a collection.

As I said before, I wouldn’t use it and if Lucee converts it to a nice
array under the covers for you, then great. Go for it.

Mark Drew

  • Sent by typing with my thumbs.

On 2 Jun 2015, at 08:48, Jean Moniatte <@Jean_Moniatte mailto:Jean_Moniatte> wrote:

On Tue, Jun 2, 2015 at 9:46 AM, Mark Drew <@Mark_Drew mailto:Mark_Drew> wrote:

Still a stupid idea. 

If you say so.

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG-7QUsKnWbkNpX8OJgBYayo-J5b3N0R_OYR%3DDipFC3ZW9f-yg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG-7QUsKnWbkNpX8OJgBYayo-J5b3N0R_OYR%3DDipFC3ZW9f-yg%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/36D01427-0D36-4B28-8B80-95A61B5E012B%40gmail.com
https://groups.google.com/d/msgid/lucee/36D01427-0D36-4B28-8B80-95A61B5E012B%40gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

If it is intended be a shorcut for converting string list to an array then
it must add a “delimiter” parameter.

Good point, the solution for this has not been implemented properly, as the
delimiter has been hard-coded (as a comma):

return ListUtil.listToArray(o.toString(), ‘,’).getIterator();

(that’s from the commit linked-to
in [LDEV-47] - Lucee)

It shouldn’t be hard-coded at all, for a start; but it should be
parameterised in this case.

I’ve suggested the ticket should be reopened & the work finished.On Tuesday, 2 June 2015 09:54:20 UTC+1, Desmond Miles wrote:


Adam

I have seen too much crap code using lists

I hasten to add that my “support” (which was more just an acknowlegdment
than any sort of advocacy) of this feature in no way ought to suggest I
actually think anyone should ever be using strings in this way. On the
contrary: ppl should be shot for doing so in most situations I see lists
being used.

However this has nothing to do with the language properly supporting a
concept it’s decided to implement.On Tuesday, 2 June 2015 08:49:19 UTC+1, Mark Drew wrote:


Adam

One for the docs!On 2 June 2015 at 17:34, Adam Cameron <@Adam_Cameron> wrote:

On Tuesday, 2 June 2015 17:24:47 UTC+1, Mark Drew wrote:

you mean something like:

var MaList = new List(“Tahi,Rua,Toru,Wha”);

for(s in MaList.each()){

}

Not quite. This:

MaList.listEach(function(x){

});

Which I think we have already.

and

var MaString = “Elvis is the bomb!”;

for(c in MaString.each()){

}

MaString.each(function(){

});

Although Dom says this has already been implemented for strings? I didnae
know that.


Adam


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/19e5c329-bb7b-4fd9-8ca8-c502cb19c8d9%40googlegroups.com
https://groups.google.com/d/msgid/lucee/19e5c329-bb7b-4fd9-8ca8-c502cb19c8d9%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk
Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn
http://www.linkedin.com/pixl8CONFIDENTIAL
AND PRIVILEGED - This e-mail and any attachment is intended solely for the
addressee, is strictly confidential and may also be subject to legal,
professional or other privilege or may be protected by work product
immunity or other legal rules. If you are not the addressee please do not
read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB

Not sure why? Lists are not s primitive collection. Just a string.

Try

myList = listToArray(“1,2,3,4,5”) ;

for(item in myList){
writeOutput(item);
}

Mark Drew

  • Sent by typing with my thumbs.> On 2 Jun 2015, at 05:28, Paul Kukiel <@Paul_Kukiel> wrote:

Kinda expected this to work?

myList = “1,2,3,4,5” ;

for(item in myList){
writeOutput(item);
}


Paul Kukiel

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAHX0TS7hf67-gtnU4BmddJvTnTA0LJyrysAvpz8z1AmAYsUEUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

@Mark

I personally agree with you, but the driving force behind fixing this
issue was ACF compatibility.

if anything, I would prefer

for (ch in someString) { /* ... to iterate over the characters of the 

string … */ }

but then compatibility would completely break…

I’ve been mulling over a sensible syntactical tweak to disambiguate between
“by list element” and “by char”, but drew a blank.

However it’s perhaps better to join the current decade and take an OO & FP
approach to these things, by implementing String.each(), .reduce(), .map(),
.sort(), .filter(), etc

It makes for more clear code to use purpose-specific iteration methods,
rather than generic and procedural looping statements.On Tuesday, 2 June 2015 15:09:47 UTC+1, Igal wrote:


Adam

Adding my vote that this should be made to work in Lucee, or at least
document as deviating from Adobe CF. If your gonna claim that you are Adobe
CF compatible, then don’t complain when someone brings up an
incompatibility. Even if you think its a stupid idea.On Monday, June 1, 2015 at 11:28:48 PM UTC-5, Paul Kukiel wrote:

Kinda expected this to work?

myList = “1,2,3,4,5” ;

for(item in myList){
writeOutput(item);
}


Paul Kukiel

Code review was a freebie :-POn Tuesday, 2 June 2015, Paul Kukiel <@Paul_Kukiel> wrote:

Oh boy what have I done!

Lists have always been a part of cfml, can’t change that, I would think
that it you can cf loop list then for in would also just work.

Yes listToArray was used but it was one extra line if code to type in big
deal.

I simply asked if it should work not weather my code is shit.
On Jun 2, 2015 7:09 PM, “Adam Cameron” <@Adam_Cameron <javascript:_e(%7B%7D,‘cvml’,‘@Adam_Cameron’);>> wrote:

On Tuesday, 2 June 2015 09:54:20 UTC+1, Desmond Miles wrote:

If it is intended be a shorcut for converting string list to an array
then it must add a “delimiter” parameter.

Good point, the solution for this has not been implemented properly, as
the delimiter has been hard-coded (as a comma):

return ListUtil.listToArray(o.toString(), ‘,’).getIterator();

(that’s from the commit linked-to in
[LDEV-47] - Lucee)

It shouldn’t be hard-coded at all, for a start; but it should be
parameterised in this case.

I’ve suggested the ticket should be reopened & the work finished.


Adam


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/a781f472-9cc3-4a5c-9df7-e533755279bd%40googlegroups.com
https://groups.google.com/d/msgid/lucee/a781f472-9cc3-4a5c-9df7-e533755279bd%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAHX0TS5_RoA5t1yfG7Q7%2Bh-EvSw4x3zEKngtL%2BwLBa7YwmaaWQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAHX0TS5_RoA5t1yfG7Q7%2Bh-EvSw4x3zEKngtL%2BwLBa7YwmaaWQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix

Not sure why?

Because it is practical and avoids converting the string to an array.

Indeed. Whilst CFML makes a claim that there is such a thing as a list
(which is string with element delimiters in it: we get that), then it
stands to reason that all the usual collection-iteration possibilities are
availed to it.

In for a penny, in for a pound. Even if they penny is misshapen and not
accepted as legal tender anywhere else.

That said: hands up who’d like to list support in .lucee entirely? [raises
hand. Raises other hand too].On Tuesday, 2 June 2015 08:31:39 UTC+1, jmoniatte wrote:

On Tue, Jun 2, 2015 at 9:11 AM, Mark Drew <mark...@gmail.com <javascript:> wrote:


Adam

if anything, I would prefer

for (ch in someString) { /* ... to iterate over the characters of the 

string … */ }

I’ve been mulling over a sensible syntactical tweak to disambiguate
between “by list element” and “by char”, but drew a blank.

As soon as I pressed send, I got it.

You’re stuck with the default syntax being used for looping over a
comma-delimited list. However - if the solution had been implemented
thoroughly - you could use a null delimiter to iterate by character, eg:

for (element in list[; delimiter[; multi-char]]);

EG:
for (char in “abc”;null){ // or “” should work too
echo char; //abc
}

It’s not as good as not needing to specifiy nothing (as it were), but as
you say, Adobe’s kinda stitched everyone up there.

And iteration methods are just better anyhow, so you’ve still got your best
option available to you, and you can lead the way with CFML quite happily
as CF doesn’t have anything in that space already.

Thoughts? More something for the language forum perhaps? It needs a bit of
love, after all…On Tuesday, 2 June 2015 17:16:18 UTC+1, Adam Cameron wrote:

On Tuesday, 2 June 2015 15:09:47 UTC+1, Igal wrote:


Adam

A native string.split( regex ) would be great too; avoiding the ‘list’
baggage and implementing more flexible splitting using regex rather than a
list of single character delimiters.On 2 June 2015 at 17:16, Adam Cameron <@Adam_Cameron> wrote:

On Tuesday, 2 June 2015 15:09:47 UTC+1, Igal wrote:

@Mark

I personally agree with you, but the driving force behind fixing this
issue was ACF compatibility.

if anything, I would prefer

for (ch in someString) { /* ... to iterate over the characters of the

string … */ }

but then compatibility would completely break…

I’ve been mulling over a sensible syntactical tweak to disambiguate
between “by list element” and “by char”, but drew a blank.

However it’s perhaps better to join the current decade and take an OO & FP
approach to these things, by implementing String.each(), .reduce(), .map(),
.sort(), .filter(), etc

It makes for more clear code to use purpose-specific iteration methods,
rather than generic and procedural looping statements.


Adam


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/e4b5c137-ff0a-4dd4-8a12-490175bcf5f3%40googlegroups.com
https://groups.google.com/d/msgid/lucee/e4b5c137-ff0a-4dd4-8a12-490175bcf5f3%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk
Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn
http://www.linkedin.com/pixl8CONFIDENTIAL
AND PRIVILEGED - This e-mail and any attachment is intended solely for the
addressee, is strictly confidential and may also be subject to legal,
professional or other privilege or may be protected by work product
immunity or other legal rules. If you are not the addressee please do not
read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB

for (element in list[; delimiter[; multi-char]]);

I would be against that for the same reason that you cannot specify the
“step” (eg, every other element) in a for…in array loop.

That doesn’t quite follow. step is never a feature of for…in loops of
any description, because a for…in loop is specifically for iterating over
all elements of the collection.

Correct, it is the simplest array loop that follows the most common use
case for looping over arrays. You also cannot specify direction or an
index.

The delimiter and multi-char parameters here are necessary to correctly
support lists that a) don’t use a hard-coded comma delimiter; b) have
multi-char delimiters. These are the opposite of the step concept: they are
required to facilitate looping over all list elements, not to omit them.
However you’re in good company (after a fashion)… the Adobe engineers
made exactly the same misreading of the situation.

It does follow if you expect for…in loops to be simple and representing
the defaults
. The default for a cfloop over a list is that the list be a
simple comma-delimited list. Any other needs are addressed with different
(arguably better) constructs, of which there are at least 4.

On the other hand I completely agree that using lists as a “thing” should
be frowned up. However I believe that if one is going to support lists,
then one should do the job thoroughly. Which has not been done here.

Maybe not for this particular construct. However they are already
thoroughly supported with other constructs.

This is Adobe’s deal. Let them “fix” (preferably drop) it. If they
implement something along the lines of what you suggest, then by all means
implement that.

Again, I hope all of this doesn’t apply to the lucee dialect. I wouldn’t
mind for…in string. I would, however, expect it to follow the more
logical assumption of treating the string as a character array.


Adam


You received this message because you are subscribed to a topic in the
Google Groups “Lucee” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/lucee/N_zoOEaW2xY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/f845d6b3-470a-46bc-8edb-a28c0b68885d%40googlegroups.com
.On Jun 3, 2015 2:35 AM, “Adam Cameron” <@Adam_Cameron> wrote:
On Tuesday, 2 June 2015 22:22:36 UTC+1, Jesse Shaffer wrote:

For more options, visit https://groups.google.com/d/optout.

for (element in list[; delimiter[; multi-char]]);

I would be against that for the same reason that you cannot specify the
“step” (eg, every other element) in a for…in array loop.

That doesn’t quite follow. step is never a feature of for…in loops of any
description, because a for…in loop is specifically for iterating over all elements
of the collection. The delimiter and multi-char parameters here are
necessary to correctly support lists that a) don’t use a hard-coded comma
delimiter; b) have multi-char delimiters. These are the opposite of the
step concept: they are required to facilitate looping over all list
elements, not to omit them. However you’re in good company (after a
fashion)… the Adobe engineers made exactly the same misreading of the
situation.

On the other hand I completely agree that using lists as a “thing” should
be frowned up. However I believe that if one is going to support lists,
then one should do the job thoroughly. Which has not been done here.On Tuesday, 2 June 2015 22:22:36 UTC+1, Jesse Shaffer wrote:


Adam

That doesn’t quite follow. step is never a feature of for…in loops of
any description, because a for…in loop is specifically for iterating over
all elements of the collection.

Correct, it is the simplest array loop that follows the most common use
case for looping over arrays. You also cannot specify direction or an
index.

The delimiter and multi-char parameters here are necessary to correctly
support lists that a) don’t use a hard-coded comma delimiter; b) have
multi-char delimiters. These are the opposite of the step concept: they are
required to facilitate looping over all list elements, not to omit them.
However you’re in good company (after a fashion)… the Adobe engineers
made exactly the same misreading of the situation.

It does follow if you expect for…in loops to be simple and representing
the defaults
. The default for a cfloop over a list is that the list be a
simple comma-delimited list. Any other needs are addressed with different
(arguably better) constructs, of which there are at least 4.

We can agree to disagree. I think your analysis is a bit of a retcon sort
of thing, but hey. I don’t really care. One way or the other.

Again, I hope all of this doesn’t apply to the lucee dialect. I wouldn’t
mind for…in string. I would, however, expect it to follow the more
logical assumption of treating the string as a character array.

But we agree with each other on this one, yes.

Is there a ticket for this? Or perhaps a discussion on the language forum?On Wednesday, 3 June 2015 14:51:57 UTC+1, Jesse Shaffer wrote:


Adam

Hi Paul

the thread get a little bit offtopic, but your inital example should work
with the current release. as you can see in the textcases this is covered:

I have also executed your code and I get the following output:
12345

MichaOn Tue, Jun 2, 2015 at 11:53 AM, Paul Kukiel <@Paul_Kukiel> wrote:

It was good though, I decided to look up the initial change to lucee,
which encouraged me to take a closer look at the underlying code.

So all in all a good result.

On Tue, Jun 2, 2015 at 7:51 PM, AJ Mercer <@AJ_Mercer> wrote:

Code review was a freebie :stuck_out_tongue:

On Tuesday, 2 June 2015, Paul Kukiel <@Paul_Kukiel> wrote:

Oh boy what have I done!

Lists have always been a part of cfml, can’t change that, I would think
that it you can cf loop list then for in would also just work.

Yes listToArray was used but it was one extra line if code to type in
big deal.

I simply asked if it should work not weather my code is shit.
On Jun 2, 2015 7:09 PM, “Adam Cameron” <@Adam_Cameron> wrote:

On Tuesday, 2 June 2015 09:54:20 UTC+1, Desmond Miles wrote:

If it is intended be a shorcut for converting string list to an array
then it must add a “delimiter” parameter.

Good point, the solution for this has not been implemented properly, as
the delimiter has been hard-coded (as a comma):

return ListUtil.listToArray(o.toString(), ‘,’).getIterator();

(that’s from the commit linked-to in
[LDEV-47] - Lucee)

It shouldn’t be hard-coded at all, for a start; but it should be
parameterised in this case.

I’ve suggested the ticket should be reopened & the work finished.


Adam


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/a781f472-9cc3-4a5c-9df7-e533755279bd%40googlegroups.com
https://groups.google.com/d/msgid/lucee/a781f472-9cc3-4a5c-9df7-e533755279bd%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAHX0TS5_RoA5t1yfG7Q7%2Bh-EvSw4x3zEKngtL%2BwLBa7YwmaaWQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAHX0TS5_RoA5t1yfG7Q7%2Bh-EvSw4x3zEKngtL%2BwLBa7YwmaaWQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAPURtC0dCbEAT17h1z%2BnfvKbRk_szJGxBHh4ocAiMxLyngi5%2BQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAPURtC0dCbEAT17h1z%2BnfvKbRk_szJGxBHh4ocAiMxLyngi5%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


Paul Kukiel


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAHX0TS7FuSXofjsC2aB%2BQYSvyOyw2fHAtiZcsBgL-KL6JLymNQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAHX0TS7FuSXofjsC2aB%2BQYSvyOyw2fHAtiZcsBgL-KL6JLymNQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

if anything, I would prefer

for (ch in someString) { /* ... to iterate over the characters of the 

string … */ }

FYI I just raised this related ticket: “Implement iteration/collection
methods for strings https://luceeserver.atlassian.net/browse/LDEV-386”,
and a related thread on the language forum
http://lang.lucee.org/t/implement-iteration-collection-methods-for-strings/113
.On Tuesday, 2 June 2015 15:09:47 UTC+1, Igal wrote:


Adam