-
-
Notifications
You must be signed in to change notification settings - Fork 104
(WIP) Use define-deprecated-alias for legacy aliases
#1460
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
Draft
jackfirth
wants to merge
9
commits into
racket:master
Choose a base branch
from
jackfirth:deprecated-alias
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0bca91f
Use `define-deprecated-alias` for legacy aliases
jackfirth a2f616d
Get things to compile
jackfirth ced7cf9
Move alias to separate module
jackfirth 33e5edf
Fix more alias issues
jackfirth 39c818a
Give up on flvector aliases
jackfirth a3819f6
Remove duplicate alias
jackfirth d32a19a
Update typed-racket-lib/typed-racket/base-env/prims-deprecated.rkt
jackfirth e65fa50
Add missing alias
jackfirth ff30e31
Fix typo
jackfirth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
typed-racket-lib/typed-racket/base-env/prims-deprecated.rkt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| #lang racket/base | ||
|
|
||
|
|
||
| (provide case-lambda: | ||
| struct: | ||
| define-struct: | ||
| define-typed-struct | ||
| define-struct/exec: | ||
| for: | ||
| for/and: | ||
| for/first: | ||
| for/fold: | ||
| for/foldr: | ||
| for/hash: | ||
| for/hasheq: | ||
| for/hasheqv: | ||
| for/hashalw: | ||
| for/last: | ||
| for/list: | ||
| for/lists: | ||
| for/set: | ||
| for/or: | ||
| for/product: | ||
| for/sum: | ||
| for/vector: | ||
| for/and: | ||
| for*/first: | ||
| for*/fold: | ||
| for*/foldr: | ||
| for*/hash: | ||
| for*/hasheq: | ||
| for*/hasheqv: | ||
| for*/hashalw: | ||
| for*/last: | ||
| for*/list: | ||
| for*/lists: | ||
| for*/set: | ||
| for*/or: | ||
| for*/product: | ||
| for*/sum: | ||
| for*/vector: | ||
| do: | ||
| define-type-alias | ||
| define-typed-struct) | ||
|
|
||
|
|
||
| (require racket/deprecation | ||
| typed-racket/base-env/prims) | ||
|
|
||
|
|
||
| (define-deprecated-alias define-type-alias define-type) | ||
| (define-deprecated-alias case-lambda: case-lambda) | ||
| (define-deprecated-alias struct: struct) | ||
| (define-deprecated-alias define-struct: define-struct) | ||
| (define-deprecated-alias define-typed-struct define-struct) | ||
| (define-deprecated-alias define-struct/exec: define-struct/exec) | ||
| (define-deprecated-alias for: for) | ||
| (define-deprecated-alias for/and: for/and) | ||
| (define-deprecated-alias for/first: for/first) | ||
| (define-deprecated-alias for/fold: for/fold) | ||
| (define-deprecated-alias for/foldr: for/foldr) | ||
| (define-deprecated-alias for/hash: for/hash) | ||
| (define-deprecated-alias for/hasheq: for/hasheq) | ||
| (define-deprecated-alias for/hasheqv: for/hasheqv) | ||
| (define-deprecated-alias for/hashalw: for/hashalw) | ||
| (define-deprecated-alias for/last: for/last) | ||
| (define-deprecated-alias for/list: for/list) | ||
| (define-deprecated-alias for/lists: for/lists) | ||
| (define-deprecated-alias for/set: for/set) | ||
| (define-deprecated-alias for/or: for/or) | ||
| (define-deprecated-alias for/product: for/product) | ||
| (define-deprecated-alias for/sum: for/sum) | ||
| (define-deprecated-alias for/vector: for/vector) | ||
| (define-deprecated-alias for*/and: for/and) | ||
| (define-deprecated-alias for*/first: for*/first) | ||
| (define-deprecated-alias for*/fold: for*/fold) | ||
| (define-deprecated-alias for*/foldr: for*/foldr) | ||
| (define-deprecated-alias for*/hash: for*/hash) | ||
| (define-deprecated-alias for*/hasheq: for*/hasheq) | ||
| (define-deprecated-alias for*/hasheqv: for*/hasheqv) | ||
| (define-deprecated-alias for*/hashalw: for*/hashalw) | ||
| (define-deprecated-alias for*/last: for*/last) | ||
| (define-deprecated-alias for*/list: for*/list) | ||
| (define-deprecated-alias for*/lists: for*/lists) | ||
| (define-deprecated-alias for*/set: for*/set) | ||
| (define-deprecated-alias for*/or: for*/or) | ||
| (define-deprecated-alias for*/product: for*/product) | ||
| (define-deprecated-alias for*/sum: for*/sum) | ||
| (define-deprecated-alias for*/vector: for*/vector) | ||
| (define-deprecated-alias do: do) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.