Description
The new documentation about strict syntax states that when you use def
, you must not include a type annotation:
nextflow/docs/updating-syntax.md
Line 252 in 67ffc8a
However, a later example includes a type annotation, and even states they they are preferred over as
-casts:
nextflow/docs/updating-syntax.md
Lines 332 to 336 in 67ffc8a
There is a note that type annotations will be addressed properly in the future:
nextflow/docs/updating-syntax.md
Line 264 in 67ffc8a
but this only mentions that the language server will not produce an error – should this instead say that Nextflow as a whole will accept type annotations at the moment? (but, for example, that they are discouraged and may cause an error in the future, if that is the case?)