[m-rev.] for post-commit review: reserve type names

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Sep 4 06:12:51 AEST 2015


After an earlier diff, there was in-principle agreement that
reserving type names such as "int" is a good idea. This
implements that decision.

At the moment, the four builtin types are int, float, string
and character. "char" is not reserved; it is defined as a
synonym for "character" in library/char.m. Given that
virtually all the code we have that deals with characters
uses "char" and not "character", it may be a good idea
to either switch them around (make "char" the builtin type
and "character" a synonym for it) or to reserve both names
for the builtin type. However, the bootstrapping process
for either change would NOT be trivial, and is probably
not worth it.

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.parse_type
Type: application/octet-stream
Size: 54774 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20150904/c2befffb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.parse_type
Type: application/octet-stream
Size: 2829 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20150904/c2befffb/attachment-0001.obj>


More information about the reviews mailing list