News for hackers. Stuff that matters.
Re:Introducing C# in Godot by knocte on Sunday October 22, 2017 @04:21AM (#15525740)
I think switch blocks are only worth it when you have 2 or more `else if`, otherwise a normal `if` is more readable IMHO.
Re:Introducing C# in Godot by n4r9 on Sunday October 22, 2017 @04:44AM (#15525780)
Normally I'd agree, but I really like the concise but readable way this handles the casting for you.
Re:Introducing C# in Godot by andybak on Sunday October 22, 2017 @06:02AM (#15525968)
It might be if they used the One True Brace style ;)