Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mikeash
on Oct 12, 2017
|
parent
|
context
|
favorite
| on:
TerrariaClone – An incomprehensible hellscape of s...
Wouldn’t “else if {“ and “else { if” compile to identical bytecode?
ufo
on Oct 13, 2017
|
next
[–]
Sure, but the decompiler can choose to always decompile to "else if {", which is more readable and more likely to match the original source code.
mikeash
on Oct 13, 2017
|
parent
|
next
[–]
That's my point. The compiler's choice of "else if {" or "else { if" is unrelated to the programmer's choice.
danbruc
on Oct 13, 2017
|
prev
[–]
It does and at least the current dotPeek 2017.2.2 decompiles it to else if and does, other than I thought, not allow to customize it.
mikeash
on Oct 13, 2017
|
parent
[–]
Obviously whatever decompiler was used here decided to do it the other way.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: