deprecate functions inf() and nan()
Merge pull request #8776 from JuliaLang/jb/infnan

deprecate functions `inf` and `nan`