rascal - margin characters in string with interpolation -
inside string literal, margin character (a single quote) indicates initial part of line, before margin character, should ignored. there complementary "right-margin" character, indicates after on same line should ignored?
(i realized useful when writing lengthy code inside interpolated expressions in string. in order make code more readable, split on multiple lines, newlines introduced way should not part of string literal. , putting newlines inside <...> looks ugly.)
rascal supports ignoring left-margin characters before single quote (') in interpolated strings. suggestion ignoring right-margin characters interesting not supported.
since layout inside interpolations <...> ignored can (and have to) place additional layout there.
Comments
Post a Comment