You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, since the left hand side this is not obviously a good idea, consider:
@getFoo().doMacroStuff();
Here it's unclear whether @ is indicating that getFoo or doMacroStuff is the actual macro.
There are ways to perhaps fix this:
// A
f.@doMacroStuff();
getFoo().@doMacroStuff();
// B
f@doMacroStuff()
getFoo()@doMacroStuff();
// C
f->doMacroStuff();
getFoo()->doMacroStuff();
// D
f->@doMacroStuff();
getFoo()->@doMacroStuff();
// E
f#doMacroStuff()
getFoo()#doMacroStuff();
// F - move to end
f.doMacroStuff@();
getFoo().doMacroStuff@();
(F) here would mean that normal macro invocation of @callMacro() would move to callMacro@()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
C3 will introduce macro method syntax. Today there is the method syntax like this:
To add symmetry as well as to allow things like user implemented
foreach
macro methods are needed. An idea could be this:However, since the left hand side this is not obviously a good idea, consider:
Here it's unclear whether
@
is indicating thatgetFoo
ordoMacroStuff
is the actual macro.There are ways to perhaps fix this:
(F) here would mean that normal macro invocation of
@callMacro()
would move tocallMacro@()
Beta Was this translation helpful? Give feedback.
All reactions