mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-09-11 13:00:34 +03:00
typing: explicit syntactic sugar for record types
This commit is contained in:
parent
50400c43e4
commit
8ca99c4f03
@ -8,6 +8,7 @@
|
||||
|
||||
\section{Types}
|
||||
\begin{grammar}
|
||||
\bfseries
|
||||
<t> ::= \c/ \| \t/ $\bm{\rightarrow}$ \t/
|
||||
\alt \t/ $\bm{\vee}$ \t/ \| \t/ $\bm{\wedge}$ \t/ \| \t/ $\bm{\backslash}$ \t/
|
||||
\alt [\meta{R}]
|
||||
@ -21,6 +22,11 @@
|
||||
<\τ> ::= \t/ % No polymorphism for now
|
||||
\end{grammar}
|
||||
|
||||
\textbf{\{ \s/ = \u/; \ldots{}; \s/ = \u/; \}} (\emph{resp}. \textbf{\{ \s/ =
|
||||
\u/; \ldots{}; \s/ = \u/; .. \}}) is syntactic sugar for \textbf{\{ \s/ = \u/;
|
||||
\ldots{}; \s/ = \u/; _ = $\undef$ \}} (\emph{resp}. \textbf{\{ \s/ = \u/;
|
||||
\ldots{}; \s/ = \u/; _ = \textmd{\emph{Any}} \}})
|
||||
|
||||
\section{Typing rules}
|
||||
\subsection{$\lambda\&$-calculus}
|
||||
\begin{mathpar}
|
||||
|
Loading…
Reference in New Issue
Block a user