Re: Resurection of routine_id forward referencing

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

> For myself, I would like have the ability to code things in the order
> that I prefer - not the order that someone else decides is good
> coding practice. Its the euphoria parsers job to figure it out - if
> that means multiple passes through the code then so be it.
> You can code the way you want - lets allow everyone that same liberty.
>
> If my code is not pretty for someone else, too bad. Unless the someone else
> is paying for my code and has stipulated the style up front - again, too bad.
> I code things to get something done, not to teach coding style, so will
> code in the way that makes the most sense for me.

Euphoria is designed to be interpreted from top to bottom. Any given
line of code may only reference code above it, not below. That is
simply how Euphoria operates. Top-to-bottom. If a line of code can
reference code below it, then this goes against how Euphoria operates.
That is why Rob considered it a bug and chose to not allow it.

If the current Euphoria code functionality doesn't comply with how you
code, then perhaps Euphoria isn't for you. It makes one pass over the
code and begins executing it from the beginning and stops at the
bottom.

> IMHO, you are not "breaking the core functionality of Euphoria" since you
> can do things the way you have always done. Old code still works,
> therfore nothing is broken.

True, it will still work the way it does, but if you're referencing
routines with routine_id and passing a code-generated sequence to it,
you may end up with a nasty bug that references code ahead of itself
or code it was never meant to reference at all.

> Its the simple principle: allow a coder to choose his own style, don't
> enforce it. Thats my take on "goto" also.

No goto, no forward referancing. Euphoria is designed to be simple. It
is simple. Features like goto are complicated and choppy. You can get
confused about where code jumps and where it comes from.

> Mail me privately if you want.

No need, I'm sure others would like to partake in this conversation as well.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu