text = symbol? Marc Feeley (14 Jun 2016 02:37 UTC)
Re: text = symbol? Marc Feeley (14 Jun 2016 02:40 UTC)
Re: text = symbol? Per Bothner (14 Jun 2016 03:45 UTC)
Re: text = symbol? William D Clinger (14 Jun 2016 12:58 UTC)

text = symbol? Marc Feeley 14 Jun 2016 02:37 UTC

I haven’t followed all of the discussion so perhaps this comment has been made, but it strikes me as a bit odd to introduce a new type for immutable strings, “text”, when Scheme already has the “symbol” type for this concept.  Scheme currently has the following types for data related to textual information:

- character
- string
- symbol

I would prefer unifying those types rather than adding other ones.  I would be happy with a Scheme with only a single immutable text type (what is now known as a symbol) after all characters are just symbols of length 1, and fixed length mutable strings are a rather low-level concept (they are more an artifact of how text has been historically represented).  In fact some languages

Backward compatibility is a strong argument for not removing characters and mutable strings, and I can live with that.  However, adding a new type of immutable text strikes me as redundant and confusing.

Just my 2 cents.

Marc