Skip to content

[Feature Request] Support more type aliases. #1242

@NoahStoryM

Description

@NoahStoryM

Is your feature request related to a problem? Please describe.
I always get frustrated when I have to write some really long type names.

For example, it would be nice if (ImmHT Nonneg-Rat (WBox (WBox Imag))) could be treated as an alias for (Immutable-HashTable Nonnegative-Exact-Rational (Weak-Boxof (Weak-Boxof Imaginary))).

And some existing type aliases are not always consistent. For example, Float is an alias of Flonum, but ExtFloat-Positive-Zero is not defined.

Describe the solution you'd like

I wish we could simplify type names in some way (maybe aliasing rules?).

Listed below are the aliases I'd like:

[Exact-Positive    (Positive-Exact)]
[Exact-Nonpositive (Nonpositive-Exact)]
[Exact-Negative    (Negative-Exact)]
[Exact-Nonnegative (Nonnegative-Exact)]

[Rational (Rat)]
[Positive (Pos)]
[positive (pos)]
[Negative (Neg)]
[negative (neg)]

[Exact-Integer  (Integer)]
[Exact-Rational (Rational)]
[Natural        (Nat)]
[Integer        (Int)]
[Flonum         (Float)]
[Imaginary      (Imag)]
[Nothing        (None)]

[Mutable-   (M)]
[Immutable- (Imm)]
[Weak-      (W)]

[Boxof     (Box)]
[Pairof    (Pair)]
[HashTable (HT)]

[∪  (U Un Union)]
[∩  (Intersection)]
[∀  (All)]
[∃  (Exist)]
[-> (→)]
[<- (←)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions