forked from rossberg/1ml
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is analogous to record (or definition or binding) punning where one can write e.g. x = 1; y = 2; xy = {x; y}; ;; same as {x = x; y = y} Now that notation also exists for declarations. This is motivated by the upcoming intersection like signature combination operator `&`. Consider a `MAP` signature: type MAP = { type t _; Key: ORD; ;; ... }; With the declaration punning notation and intersection like combination, one could write Map (Key: ORD) :> MAP & {Key} = ;; ... to refine the `MAP` signature.
- Loading branch information
Showing
3 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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