question on syntax[a,b,c]

new topic     » topic index » view thread      » older message » newer message

Hello,

I do not miss this option a lot but I would love to hear opinion. Currently the
Euphoria syntax allows you to create new sequences (for printf() let's say) this
way:

sx={buffer[1],buffer[2],buffer[4],buffer[5],buffer[8],buffer[3],buffer[7]}
-- or 
sx=buffer[1..2]&buffer[4..5]&{buffer[5],buffer[8],buffer[3],buffer[7]}


At the same time it would simplify the code a bit if you could say 

sx=buffer[1,2,4,5,8,3,7]
-- or 
sx=buffer[{1,2,4,5,8,3,7}]


Just to make it clear: apart from readabilty issues I do not see any advantage,
so I do not propose it to be implemented. It's just that I'd like to know the
reasons of this limitation.

Kind regards,

Salix

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu