Replies: 4 comments 1 reply
-
Yup, the best way to get people off a bad habit is to offer something better 😄 |
Beta Was this translation helpful? Give feedback.
-
Probably the sanest/most intuitive alternative would be just let people use { } to indicate such blocks.
... but within one line only 🤦 Over multiple lines it fails with "macro has an unterminated body" |
Beta Was this translation helpful? Give feedback.
-
I always considered this not working to be a bug. |
Beta Was this translation helpful? Give feedback.
-
It's not hard to fix this for the macro file case. But the spec file case is a bit nastier. |
Beta Was this translation helpful? Give feedback.
-
Hello. I often written macros defined like this:
I've abused
%expand
to have a macro definition that expands across multiple lines.@pmatilai said:
If I had to drop the
%expand
, I'd probably have to do something like:That is a bit ugly. Another option is to take a macro that is always defined and make the thing conditional on it:
That is hard to understand by the reader.
Could we get some kind of macro that allows us to achieve what we use
%expand
for?E.g.
Beta Was this translation helpful? Give feedback.
All reactions