[Omake] handling of white space
Aleksey Nogin
anogin at hrl.com
Mon Aug 20 15:18:40 PDT 2007
On 19.08.2007 23:12, Achim Blumensath wrote:
>>> Jason Hickey wrote:
>>>> This is intended. Non-leading whitespace in a definition is
>>>> significant, ...
>>> What was the reason for this decision?
>> It comes from compatibility with GNU make.
> [...]
>> However, I would agree that this choice is irritating, and it might
>> be better to diverge from GNU make here.
>
> Yes, I would be in favour of this change. (OMake is supposed to be a
> saner alternative to make.) If you really want a variable with trailing
> white space you can use quotes.
>
I agree. If somebody want the trailing whitespace, they can quote it. We
should not follow make's lead - "invisible whitespace" should not be
significant and it should be possible to add whitespace before a comment.
Of course, the trailing whitespace inside multi-line quoted strings will
still remain, but it's a reasonable special case, IMHO.
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list