On 2015-07-23 21:26, Dicebot wrote:

I had a lot of frustration with that (mis)feature and Rust and find it
very unreadable. Because of that, so far I always used explicit returns
in Rust code even if it is not necessary - that allows to quickly
oversee all main exit points of the function.

Perhaps the two languages implement it differently.

That is mostly matter of programming culture and hard to resonably
justify in any way. Ironically, that would feel more "at home" in D than
in Rust because normally latter is much more restrictive and explicit in
the code style, such implicit functional syntax sugar feels very alien
in typically verbose and detailed code.

Yeah, I'm used to Ruby where it's implemented as well.

--
/Jacob Carlborg

Reply via email to