Re: deepening listed subscripting

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

Jeremy Peterson wrote:
> 
> There have been many other things that lots of people wanted added to
> Euphoria,
> like Select case, continue in for loops, and whatnot, but Rob never added
> them.
>  I doubt he would add something like this with no apparent value.  Maybe
>  that's
> why people are so hostile to this, their good suggestions have been turned
> down
> so they are protesting a not-so-good suggestion.

I think it comes down to (in rough order of importance):

 - how easy it would be for Rob to incorporate this into the language
 - whether it breaks any existing code
 - whether it majorly impacts performance
 - how well it can be documented so that there is no confusion
- how useful it is (I don't think this can be first in the list as it is a
 subjective opinion).

The first point addresses your post.  If it is not extraordinarily complex to
implement in the language or there is no considerable performance impact to doing
it, and it satisfies the above criteria then I am not opposed to it.

I would love to see a 'continue' or 'next' in for loops (I wanted this yesterday
for processing command line options) but if it is too difficult to implement or
hampers performance then I can understand why it is not there.

Another thing to look at is whether it can be implemented in a function and
whether that is OK performance-wise.  For listed subscripts, I can imagine it
would be relatively easy to come up with a subscripts(...) function, but would
that be satisfying?

Gary

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

Search



Quick Links

User menu

Not signed in.

Misc Menu