Twitter | Pretraživanje | |
Izzy Muerte 27. sij
Thanks, I hate it 😬
Reply Retweet Označi sa "sviđa mi se"
Katharina 🍪🏴󠁧󠁢󠁳󠁣󠁴󠁿 Fey 27. sij
Odgovor korisniku/ci @slurpsmadrips
wat?
Reply Retweet Označi sa "sviđa mi se"
Katharina 🍪🏴󠁧󠁢󠁳󠁣󠁴󠁿 Fey 27. sij
Odgovor korisniku/ci @slurpsmadrips
What language is this?! Is this gonna be syntactic sugar for Ok(Ok(value)) if value => ?
Reply Retweet Označi sa "sviđa mi se"
Celti B. 27. sij
Odgovor korisniku/ci @spacekookie @slurpsmadrips
It's effectively sugar for `Ok(Ok(value)) if value == false` — though I think @ bindings are strictly a subset of what's capable with actual match guards.
Reply Retweet Označi sa "sviđa mi se"
q3k 27. sij
I think this is inspired by Haskell's as-patterns? With `bindings_after_at` you can do some even neater stuff.
Reply Retweet Označi sa "sviđa mi se"
q3k
(now that I think of it, I don't even know how this is called in Haskell...)
Reply Retweet Označi sa "sviđa mi se" More
emily 27. sij
Odgovor korisniku/ci @q3k
I just say "at-patterns"
Reply Retweet Označi sa "sviđa mi se"
emily 27. sij
Odgovor korisniku/ci @q3k
apparently the Report calls them "as-patterns"
Reply Retweet Označi sa "sviđa mi se"