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
2a6eb8ee
Commit
2a6eb8ee
authored
Sep 18, 2019
by
Giuseppe Castagna
Browse files
bla
parent
944eab06
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples.flow
View file @
2a6eb8ee
...
...
@@ -56,8 +56,14 @@ var y = foo("Hello")
var x = (foo (42))
var z = (typeof y !== 'undefined')? y.trim() : "pippo"
/*
the following should fail but it does not
*/
var u = (typeof x !== 'undefined')? x.trim() : "pippo"
var foo2 : (number => number | void ) & (string => string | void ) = x => {
(typeof(x) === "number")? x++ : x.trim()
}
...
...
language.tex
View file @
2a6eb8ee
...
...
@@ -116,7 +116,7 @@ $\Cx[e]\reduces\Cx[e']$.
\subsection
{
Static semantics
}
\label
{
sec:static
}
While the syntax and reduction semantics are, on the whole, pretty
standard for the type system
,
we will have to introduce several
standard
,
for
what concerns
the type system we will have to introduce several
unconventional features that we anticipated in
Section~
\ref
{
sec:challenges
}
and are at the core of our work. Let
us start with the standard part, that is the typing of the functional
...
...
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