Code has the advantage that functions and operators are googleable, while mathematical notation is not. I think the search problem is a fairly serious issue for maths actually.
True, but it's not maths' fault Google and OSs dont support copy/paste for notation. Also, if you have to google e.g. the expectation operator you probably shouldnt be reading research papers in theoretical machine learning.