Long literals, with continuations: Difference between revisions
Content added Content deleted
(Add Factor) |
m (→{{header|Factor}}: use <pre> instead of <code> in explanation) |
||
Line 69: | Line 69: | ||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
The <code>qw</code> vocabulary provides Perl-ish syntax for arrays of strings. For instance, the literal |
The <code>qw</code> vocabulary provides Perl-ish syntax for arrays of strings. For instance, the literal <pre>qw{ a bc d }</pre> expands to <pre>{ "a" "bc" "d" }</pre> during parse time. This is convenient to use when the strings that are stored contain no whitespace. |
||
The convention in Factor is to limit lines to 60 characters wide if possible. This constraint is sometimes waived for large literals, but it was easy enough to accommodate here. |
The convention in Factor is to limit lines to 60 characters wide if possible. This constraint is sometimes waived for large literals, but it was easy enough to accommodate here. |