-
-
Notifications
You must be signed in to change notification settings - Fork 102
[Feature Request] Support more type aliases. #1242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Couldn't these be provided as a user library? And I personally don't like |
If only a few aliases are needed, I think providing them in a user library is sufficient. But considering the above examples: |
another solution to avoiding typing is to use auto-completion or abbreviation provided by your editor.
I think those abbreviations above are already supported. edit:
what is the left arrow used for? |
There are a few different things here.
|
Thanks for your suggestion, auto-completion can indeed make writing types easier, but I still hope the type name can be less verbose. In many cases, the type of lambda is too long, which makes the code not very readable.
Oh, this left arrow is just something I scribbled with. I just want the arrows to correspond to unicode arrows.
In fact, this Feature Request was proposed because I tried to fill in these missing type names and found that it seems not so easy. I also found that some type names are not consistent. For example, in TR, [Exact-Rational -Rat]
[Integer -Int] I guess I feel that the types after
I'm trying to add more aliases via |
Uh oh!
There was an error while loading. Please reload this page.
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 ofFlonum
, butExtFloat-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)] [-> (→)] [<- (←)]
The text was updated successfully, but these errors were encountered: