Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Giuseppe Castagna
occurrence-typing
Commits
4df3091b
Commit
4df3091b
authored
Sep 17, 2019
by
Giuseppe Castagna
Browse files
typo
parent
6ca9c2ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
intro.tex
View file @
4df3091b
...
...
@@ -153,7 +153,8 @@ $(\Int\vee\String)\wedge\Int$ that is \Int. To type the ``else'' branch
we reason exactly in the same way, with the only difference that, since
the type test has failed, then we know that the type of the tested expression is
\emph
{
not
}
\Int
. That is, the expression
$
x
_
1
x
_
2
$
can produce any possible value
barring an
\Int
. If we denote by
\Any\
the type of all values and by
barring an
\Int
. If we denote by
\Any\
the type of all values (i.e., the
type
\code
{
any
}
of TypeScript and Flow) and by
$
\setminus
$
the set difference, then this means that in the else branch we
know that
$
x
_
1
x
_
2
$
has type
$
\Any
{
\setminus
}
\Int
$
---written
$
\neg\Int
$
---, that is, it can return values of any type barred
\Int
. Reasoning as for the ``then'' branch we then assume that
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment