Re: binary search with reference to append

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

I'm okay with breaking user APIs; we're talking about Euphoria not Unix. Programming languages do this all the time with major releases.

I thought the way we did things was.

X.Y.Z

Z - patchlevel release. bugfixes and new routines in stdlib.

Y - minor release. new language features, keywords, syntax, etc.

X - major release, backwards incompatibility.

So this would have to be pushed back to 5.0.0 if we follow this.

jaygade said...

The key would be to deprecate the parameters for at least one point release, then ignore them going forward. If that's what you wanted to do.

I'm not sure I like this - there's a chance that legacy code would not break, but return a logic error (it found the match, but it's outside the range of the slice, and thus should not have reported the match), raising hard to debug issues later on...

jaygade said...

However, the function works as-is, the documentation can state that the parameters are deprecated and to pass a slice instead, and defer the code change indefinitely.

Good point. This works.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu