Escaped line breaks in (e.g.) @enum?


#1

Might it be useful to permit (i.e., interpret/discard) escaped newlines in macros such as @enum? I know one can already use begin/end, but if the enum members are just a bit over a single line, it might be useful to write, say,

@enum Lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy \
      eirmod tempor invidunt ut labore et dolore

rather than

@enum Lorem begin ipsum; dolor; sit; amet; consetetur; sadipscing; elitr; sed;
      diam; nonumy; eirmod; tempor; invidunt; ut; labore; et; dolore end

or, I suppose,

@enum(Lorem, ipsum, dolor, sit, amet, consetetur, sadipscing, elitr, sed,
      diam, nonumy, eirmod, tempor, invidunt, ut, labore, et, dolore)

Perhaps this is even a convention that might be useful in other single-line macros (though I can’t think of any obvious candidates off the top of my head) – just as an analogy to ordinary single-line statements/expressions?


#2

I guess even

@enum Lorem begin
    ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod
    tempor invidunt ut labore et dolore
end

would be an improvement for @enum, specifically (i.e., not require separate lines/statements for the members).


#3

What’s the matter with the @enum( ... ) form?
It seems pretty clear, easy to use, and unambiguous to me.


#4

Yeah, it was just a mild, irrational preference, but you’re right – it’s fine.