<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 21, 2017 at 4:02 PM Lloyd R. Prentice <<a href="mailto:lloyd@writersglen.com">lloyd@writersglen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I can appreciate the reasons for the changes, but it has created moments of frustration for me.<br>
<br>
I'm running an earlier version of Erlang. Plan to upgrade, but not yet. My work habit is to frequently consult on-line Erlang docs.<br>
<br>
The other day I looked up string:span/2, which I've used in various places throughout my code. But what's this? It's marked "obsolete - use take/2."<br>
<br>
I must have caught the docs at a point of transition since there was no take/2 in the list of string functions. What to do? What to do?<br>
<br>
That version of the docs seems to have been updated. Both take/2 and span/2 are now in the list.<br>
<br>
OK, I can live with momentary and passing frustration. But now, when I upgrade Erlang, do I have to worry that span/2 will be dropped at some point--- after all, it's "obsolete."<br></blockquote><div><br></div><div>It might be dropped at some point, but not in any near future, not until OTP-23 and probably not in that release either.</div><div>We will deprecate (and add warnings) and remove the docs of the old functions in OTP-21.</div><div><br></div><div>The old functions will be kept.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Or do I have run two versions of Erlang?<br>
<br>
Plus, I now find the string docs much harder to use since I have to think about whether a given function is in my version of Erlang or not.<br>
<br>
Petty issues and, perhaps the price of progress. But it does illustrate that library revision may have unintended consequences.<br></blockquote><div><br></div><div>The only difference right now (in OTP-20) is the addition of new functions and the text that warns that the old ones will be deprecated in 21.</div><div>So the only problem you might get in OTP-21 is deprecated warnings for using old functions which you can suppress.<br></div><div><br></div><div>/Dan</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best wishes,<br>
<br>
LRP<br>
<br>
Sent from my iPad<br>
<br>
> On Jul 21, 2017, at 4:46 AM, zxq9 <<a href="mailto:zxq9@zxq9.com" target="_blank">zxq9@zxq9.com</a>> wrote:<br>
><br>
> I missed it when looking through R20 release notes, but on referencing the string module I noticed a LOT of changes have happened there. String objects are now more or less based on unicode:chardata() and utf8 graphemes.<br>
><br>
> Whoever is responsible for this -- THANK YOU.<br>
><br>
> For those of us in East Asia life just got a bit easier. Not 100% easy, because what fun would that be, but this sure is a lot nicer.<br>
><br>
> Yay!<br>
> -Craig<br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>