TBH I would be pretty pissed off to see this merged while let else was rejected.
AstralSorcerer joined the channel
est31
_nox: yeah it is a quite sugary debate we have
Muhannad has quit
_nox
Especially when the argument against let else was "just use match".
rkruppe
I've given up on the thread because there's like ten different proposals floating around
Including several that are only tangentially related
est31
I could live without any of this stuff merged
rkruppe
well obviously
_nox
We definitely live without let else in Servo, but it would make code cleaner in many places.
rkruppe
I must say I am currently a bit sour on further syntactic sugar around control flow, seeing as I am currently reading code that could save several levels of indentations just with existing tools (early return, if let)
est31
I just wouldnt want sugar merged that gives a bit sweetness but means a great deal of arbitrary rules
mattes has quit
_nox
Sour on sugar?
:)
rkruppe
indeed
est31 pours a bucket of berchtesgadener salt on rkruppe
_nox would be happy with let else without the non-diverging else blocks.
est31
I often write code like let f = if let Some(v) = expr { v } else { continue; } or similar
At this point I think the RFC should be closed, and reopened in another PR, because this BCEC stuff is not the PR, and everybody is ignoring it, and if we tried to go back to it, anybody new to the discussion would be so so so confused.
est31
yeah
lets do it like the modules rfc
new pr for each day
_nox: let expr really looks great....
_nox
est31: A rogue-like RFC?
:)
Every time a legit argument against it is made, the RFC is killed and a new one must be ran.
Havvy
est31: I don't mean have a new RFC, I mean that the comments on the RFC are totally unrelated to the RFC that it's impossible to actually discuss the RFC.
est31
especially once we get arbitrary labeled blocks
porky11 has quit
Noldorin joined the channel
Havvy: I've said "new PR for each day" not "new RFC" :)
got what you've meant
but yeah the modules rfc got revised each time and renamed
Havvy
The modules one actually made changes based on discussion, as the discussion was related to the RFC.
Noldorin
okay, what on earth's going on here... 'if' expressions aren't supported in const fns?! I'm getting error[E0019]: constant function contains unimplemented expression type
steveklabnik
that's true
if is not currently allowed in a const fn
Noldorin
steveklabnik, ?!
rkruppe
Havvy: a new PR won't fix that. anything addressing the use case of chained if-let is like a big invitation to propose BCEC