Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
21
Task/Inverted-syntax/Crystal/inverted-syntax.cr
Normal file
21
Task/Inverted-syntax/Crystal/inverted-syntax.cr
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
if condition
|
||||
statement
|
||||
end
|
||||
# can be written as:
|
||||
statement if condition # the same with unless
|
||||
|
||||
v = begin
|
||||
expression
|
||||
rescue
|
||||
value
|
||||
end
|
||||
# can be written as:
|
||||
v = expression rescue value
|
||||
|
||||
begin
|
||||
statement
|
||||
ensure
|
||||
always_run
|
||||
end
|
||||
# can be written as:
|
||||
statement ensure always_run
|
||||
Loading…
Add table
Add a link
Reference in a new issue