Don't reserve "ideal" as a keyword.

Use "ℤ" instead, which can never conflict with user-defined identifiers,
as it is non-ASCII, but also the mathematical meaning of "ℤ" perfectly
captures the concept of an ideal integer type.
This commit is contained in:
Nigel Tao committed 2017-06-08 14:01:52 +10:00
1 parent cf41f0406b
commit 0aa6a0f1c2
2 files changed
+18 -5

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func (e *Error) Error() string {
// TypeExprFoo is an *ast.Node MType (implicit type).
var (
TypeExprBool = a.NewTypeExpr(0, t.IDBool, nil, nil, nil)
TypeExprIdeal = a.NewTypeExpr(0, t.IDIdeal, nil, nil, nil)
TypeExprIdeal = a.NewTypeExpr(0, t.IDDoubleZ, nil, nil, nil)
TypeExprU8 = a.NewTypeExpr(0, t.IDU8, nil, nil, nil)
)