DEV Community

Discussion on: Benefits of Rust

Collapse
 
alexdreptu profile image
Alexandru Dreptu

Ever wished you were able to return a function from a function? Well, macros can do just that.

You can do that in Go as well and in any other language that implements "higher order functions". You don't need macros for that, they serve a different purpose for more advanced tasks.