YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -1,12 +1,16 @@
|
|||
if x == 0: foo()
|
||||
elif x == 1: bar()
|
||||
elif x == 2: baz()
|
||||
else: qux()
|
||||
if x == 0:
|
||||
foo()
|
||||
elif x == 1:
|
||||
bar()
|
||||
elif x == 2:
|
||||
baz()
|
||||
else:
|
||||
qux()
|
||||
|
||||
x
|
||||
| 0 => foo()
|
||||
| 1 => bar()
|
||||
| 2 => baz()
|
||||
| _ => qux()
|
||||
match x:
|
||||
| 0 => foo()
|
||||
| 1 => bar()
|
||||
| 2 => baz()
|
||||
| _ => qux()
|
||||
|
||||
(a) ? b : c
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
if x := fetchSomething(); if x > 0 {
|
||||
if x := fetchSomething(); x > 0 {
|
||||
DoPos(x)
|
||||
} else {
|
||||
DoNeg(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue