Skip to content

Commit

Permalink
Document Stratego gradual types change in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka committed Sep 17, 2020
1 parent b81f5df commit 0b12c8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/release/note/vnext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ See the corresponding :ref:`migration guide <vnext-migration-guide>` for migrati

Changes
-------

Stratego
~~~~~~~~

Stratego has two new reserved words: ``cast`` and ``is``. Local variables can be reserved words is 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.

0 comments on commit 0b12c8b

Please sign in to comment.