Am 13.01.2017 um 14:53 schrieb Allin Cottrell:
On Fri, 13 Jan 2017, Sven Schreiber wrote:
> Hi,
> would it be too difficult (or have unwanted side effects) to enable
> several 'set' instructions on a single line, as in:
> "set echo off, messages off" ?
>
> Obviously you will like this only if you share my preference for less
> lines of code instead of more...
I too prefer fewer lines of code if possible. (It's a bit unfortunate
that we don't have any character left to indicate "end of logical line".
The traditional semicolon is of course recruited for another purpose in
hansl.)
You mean some character in place of <...> to write stuff like the
following on one line?:
"if yes <...> print x <..> endif"
Just thinking out loud: From the ASCII characters at least "§" isn't
used by hansl I guess. But "if yes § print x § endif" looks awkward to
me at first sight (Python has "if yes: print x" of course....)
Perhaps an underscore (surrounded by whitespace) could be an
alternative: "if yes _ print x _ endif" looks quite intuitive to me. And
since identifiers aren't allowed to have leading underscores the parsing
shouldn't be too difficult, no?
Anyway, I'll take a look at the possibility you mention.
Thanks!
sven