caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Whitington <john@coherentgraphics.co.uk>
To: caml-list@inria.fr
Subject: [Caml-list] Immutable strings and the "More OCaml" textbook
Date: Sat, 14 Oct 2017 19:33:47 +0100	[thread overview]
Message-ID: <9E3517E7-9F95-40D5-8442-EBA8C90233EC@coherentgraphics.co.uk> (raw)

Dear OCamlers,

As you know, strings are immutable by default in the upcoming OCaml 4.06.0.

I have updated the text of "More OCaml" to excise string mutation in favour of the new bytes data type. Paper and Kindle copies purchased from Amazon starting today will be up-to-date, as will PDF e-books from http://ocaml-book.com

This means that readers must now use OCaml 4.02 or later, and (I think) that no reader will ever have to use -safe-string or -unsafe-string flags.

The examples and exercises at https://github.com/johnwhitington/more-ocaml-exercises have been updated too.

If you have a paper copy of "More OCaml" and would like a free copy of the updated PDF version, please email me. Customers of the PDF e-book should already have received an automatic update email.

"OCaml from the Very Beginning" did not require any updates with regard to immutable strings.

Thanks,

John

-- 
John Whitington
Director, Coherent Graphics Ltd


                 reply	other threads:[~2017-10-14 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9E3517E7-9F95-40D5-8442-EBA8C90233EC@coherentgraphics.co.uk \
    --to=john@coherentgraphics.co.uk \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).