IssueRaiser

> There's a macro called "try!(e)", which, if e returns a None value, returns from the enclosing function via a return you can't see in t...

> There's a macro called "try!(e)", which, if e returns a None value, returns from the enclosing function via a return you can't see in the source code. Such hidden returns are troubling. Strikes me as simply a very appropriate use of macros. Get tired of writing the same syntactic fragment again and again? Write a macro. Want to see what some macro is "hiding"? Look it up or expand it.

Posted by frou_dh on Feb 1, 2015, 7:57 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.8,000 issues0 comments

hackernews (Other)

> There's a macro called "try!(e)", which, if e returns a None value, returns from the enclosing function via a return you can't see in t...

frou_dhFeb 1, 2015, 7:57 PM

> There's a macro called "try!(e)", which, if e returns a None value, returns from the enclosing function via a return you can't see in the source code. Such hidden returns are troubling. Strikes me as simply a very appropriate use of macros. Get tired of writing the same syntactic fragment again and again? Write a macro. Want to see what some macro is "hiding"? Look it up or expand it.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue