the.bay.news

Has anyone encountered use of ControlFlow::Continue where the value is other than ()?

The Rust Programming Language Forum
Has anyone encountered use of ControlFlow::Continue where the value is other than ()?
The default type for the second generic argument of std::ops::ControlFlow is (). This makes sense in usual cases since it matches how loops behave in Rust. However, I am curious if anyone has encountered a use case where the second generic argument is other than (). The reason I am curious is because I am trying to convert this enum to an algebraic effect signature for a language I'm designing and I would like to know the enum's semantics.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.