Skip to content

Commit

Permalink
Update release notes around dynamic type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka committed Oct 9, 2020
1 parent 55c716f commit 2e7e4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/release/note/2.5.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Stratego

Stratego has two new reserved words: ``cast`` and ``is``. Local variables can be reserved words if they start with ``'``, so you can use ``'cast`` and ``'is``.

Under the Stratego language options in your ``metaborg.yaml`` file you can turn on the gradual type system, if you use the incremental compiler. This option is ``gradual: static``, and only tests the types statically. The default is ``gradual: none`` right now, meaning the gradual type system is not on by default. There is an experimental third option ``gradual: dynamic`` which not only checks the types statically but also inserts casts to check types dynamically where necessary.
Under the Stratego language options in your ``metaborg.yaml`` file you can turn on the gradual type system, if you use the incremental compiler. This option is ``gradual: static``, and only tests the types statically. The default is ``gradual: none`` right now, meaning the gradual type system is not on by default. The ``is`` dynamic type check is not yet supported at runtime, you may get Java compilation errors when attempting to compile Stratego code with that. Dynamic type casts inserted by the gradual type system are also forthcoming, runtime support for this is not yet ready.

NaBL2
~~~~~
Expand Down

0 comments on commit 2e7e4ff

Please sign in to comment.