It is prettier. I think it would work only in certain cases. Javascript's type checking is sucky.