Thanks to @davidtolnay for inventing the technique behind this, and @LukasKalbertodt for extending that to more than two cases.
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
That's a great idea! Coding this by hand is really quite ugly. One question tho: is there a reason for this syntax? I'd expect `match <expr> { <type> => <body> }` to be more natural? Just a quick thought.
-
I tried that syntax first, but that made it hard to make both specific types (i32, String, etc.) and generic (bounded) types (T: Debug, T where From<i32>: T, etc.) work ergonomically. (And it also needs a place to specify the 'return' type of a <body>.)
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
