ocamlbyexample icon indicating copy to clipboard operation
ocamlbyexample copied to clipboard

string vs bytes

Open mimoo opened this issue 3 years ago • 1 comments

emphasize the fact that these terms are misleading, and that one should think about them as:

  • string: immutable bytearray
  • bytes: mutable bytearray

mimoo avatar Feb 23 '22 21:02 mimoo

confirmed here https://stackoverflow.com/questions/71453556/should-i-use-bytes-or-string-in-ocaml?noredirect=1#comment126295401_71453556

mimoo avatar Mar 13 '22 19:03 mimoo