Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Add a bail! macro #76

Merged
merged 3 commits into from Nov 30, 2016
Merged

Add a bail! macro #76

merged 3 commits into from Nov 30, 2016

Conversation

brson
Copy link
Contributor

@brson brson commented Nov 30, 2016

This macro is similar to cargo's bail! and to the throw keyword originally proposed as part of the exception handling RFC. It's just a shorthand for early return with coercion.

I'm inclined to land this quick to sweeten up today's 0.7.0 release.

cc @Yamakaky @nikomatsakis

@brson brson merged commit 528791c into master Nov 30, 2016
@Yamakaky Yamakaky deleted the bail branch December 3, 2016 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant