Re: Associative array

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...
menno said...

Yes Pete the difference is what is meant by insert ? A insert before or insert after a given position .
I have to think about why or what is better .

A function simply named "insert()" rather than "insert_before()" or "insert_after()" is inherently ambiguous, however I think the questions you should focus on are:

  • how much legacy code must I change?
  • how much do I want RDS Eu code to run unchanged on PEU?
  • is the RDS Eu team likely to deprecate insert in favor of insert_before/after?

I don't think it's ambiguous. It says to me: Insert something. Put it here. The result follows logically from that.

The one I have trouble with is replace. The start parameter is obvious. But I can never remember if the second one is length or end position (it's the end position). I do that with just about any sort of substring function in just about any language, though.

Matt

PS It's OpenEuphoria now.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu