The fixture still works if you reverse the wires, but the socket sleeve will be hot, and anyone touching it while changing a bulb can get shocked. When wired correctly, the socket sleeve is neutral, and only the small metal tab at the base of the socket is hot.