Julia Programming Language
Is it possible to define a macro in one line (one-liner macros)?
General Usage
macros
dylanxyz
August 12, 2022, 10:45pm
9
var"@my"(mod, source, x) = :(println($(esc(x))))
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Is there a way to make macros consume forms past a newline?
General Usage
proposal
,
macros
3
873
January 11, 2018
Assigning a macro to a variable
General Usage
2
766
May 17, 2017
New syntax for multi-line macrocalls
Internals & Design
proposal
4
1281
March 7, 2019
Alternative Syntax for multiline Macros?
Internals & Design
question
7
1607
October 30, 2017
Unexpected behavior defining a function on one line with semi-colons
General Usage
14
1846
January 20, 2017