Closed ptal closed 9 years ago
For the moment, annotations invisible_type and unit_type are on rules but there is no real reason to prevent it from being used directly on expression. Instead of:
invisible_type
unit_type
#[invisible_type] spacing = [" \n\t"]* #[unit_type] spacing = [" \n\t"]*
We propose the syntax:
spacing = [" \n\t"]* -> (^) spacing = [" \n\t"]* -> ()
The (^) is for the invisible type because it propagates a unit type on the calling site.
(^)
For the moment, annotations
invisible_type
andunit_type
are on rules but there is no real reason to prevent it from being used directly on expression. Instead of:We propose the syntax:
The
(^)
is for the invisible type because it propagates a unit type on the calling site.