Message from JavaScript discussions

July 2017

— Ie5 and below

— 

I think this was the case where it happened:

var x = 1;

function y() {
var x = 2;
}

y();

// x is now 2

— Lol, in PHP this is a feature

— Oh god

— I'd still call it a bug

— Na

— In PHP it is intentional

— And it is used a lot

— Still a bug imo

— External state change = side effect = bug

— Language specific

— Just feels wrong