[Haskell-cafe] Batteries included (Was: GHC is a monopoly compiler)

Richard A. O'Keefe ok at cs.otago.ac.nz
Fri Sep 30 02:16:21 UTC 2016



On 30/09/16 4:18 AM, Joachim Durchholz wrote:
> Each language does define its preferred string representation.

Java again:  it has *two* string representations baked into the
language.

The Smalltalk system I use most has
  - read-only strings (preferred)
  - unique read-only strings
  - mutable strings
  - substrings (positionable read-only slices)
  - extensible strings
  - streams over strings
  - lazy concatenations of strings
  - read-only byte arrays viewed as strings
  - mutable byte arrays viewed as strings

Other Smalltalks typically have four or more concrete kinds
of string plus streams over strings; the substring,
extensible string, and lazy concatenation libraries
I use could be ported to them.



More information about the Haskell-Cafe mailing list