|
|
|
|
|
by bad_login
3196 days ago
|
|
The example you give doesn't have boilerplate so macro can't do more. Macro can help for two things: - reduce boilerplate - add new function to your language (often specific and limited in context of use [racket's macro a suposedly composable]). Example: racket match, clojure.async. |
|
I know what macros are and what macros can do. The parent poster made a comment that somehow macros can help overcome non-existence of wrappers in Racket. We both agree that macros won't help in this case, and my personal opinion is macros are a meme. They help some in very limited circumstances yet they are touted as a productivity multiplier. A pattern match over if-else doesn't really buy much. It's nicer, sure, but not by much.