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
32d96eb6
Commit
32d96eb6
authored
Sep 22, 2021
by
Giuseppe Castagna
Browse files
more comments
parent
fbeade39
Changes
1
Hide whitespace changes
Inline
Side-by-side
scp-reviews-2108.tex
View file @
32d96eb6
...
...
@@ -442,7 +442,22 @@ set of types for \texttt{x} will be \texttt{String,\ Number}, but for
on page 27, a redundant test will make inference succeed.
\begin{answer}
Beppe: Yes indeed, we can add a remark on that
Beppe: je ne sais pas comment gerer cette remarque. Est-ce
Typed-Racket fait mieux que nous. Si type les parametres avec
Int|String je pense que on n'est pas sorti de l'auberge. Si on type
avec (Int,Int)|(String,String) ca marche mais il faut typer la
paire. La seule solution qui ne demande pas de réécrire la fonction
est de inferer comme nous faison dans le nouveau papier.
@Mickael, check what happens in Typed Racket.
@STH. We are not sure we understand this point. It seems that if we
do not want to rewrite the whole function (using a single argument
that we will type as (Int,Int)|(String,String) is to either to have an
inference for the non-annotated function able to infer the
intersection type, or explicitly annotate the function with the
intersection type. And this in whatever system on considers,
e.g. Typed Racket, Flow, TypeScript ...
\end{answer}
...
...
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