News for hackers. Stuff that matters.
Re:The Horror in the Standard Library by Pica_soO on Saturday May 06, 2017 @04:29PM (#14282086)
Sounds like optimization going haywire, deducing that the statement under question would constantly evaluate to this term. Its valid to optimize a else statement out- if it will never be reached (Dead Codepath Optimizing out). Was there something akin to this in the statement?
Re:The Horror in the Standard Library by s_kilk on Saturday May 06, 2017 @04:53PM (#14282201)
> Was there something akin to this in the statement?

It probably was the optimiser at fault, but there wasn't anything special about this conditional, and certainly nothing that _should_ have caused the optimiser to throw away the else branch.

If memory serves right it was comparing a string field of an object to a static string, like `someObject.foo == "some string"`.