Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
knocte
on Oct 22, 2017
|
parent
|
context
|
favorite
| on:
Introducing C# in Godot
I think switch blocks are only worth it when you have 2 or more `else if`, otherwise a normal `if` is more readable IMHO.
n4r9
on Oct 22, 2017
|
next
[–]
Normally I'd agree, but I really like the concise but readable way this handles the casting for you.
andybak
on Oct 22, 2017
|
prev
[–]
It might be if they used the One True Brace style ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: