Skip to content

List of deprecations to implement #20

@KristofferC

Description

@KristofferC

Will keep adding to this:

  • Ptr{Void} -> Ptr{Cvoid}
  • Void -> Nothing
  • unshift! -> pushfirst!, shift!-> popfirst!
  • CartesianRange -> CartesianIndices
  • sub2ind -> CartesianIndices, ind2sub -> LinearIndices
  • JULIA_HOME -> Sys.BINDIR
  • ipermute! -> invpermute!
  • spones(A) -> fillstored!(copy(A), 1)
  • info, warn to macro versions (might be a bit tricky).
  • Display -> AbstractDisplay
  • linspace(a, b) -> linspace(a, b, 50), logspace(a, b) -> logspace(a, b, 50).
  • (x...) -> (x...,)
  • strwidth, charwidth -> textwidth
  • Array{T, N}(m::Int, ...::Int) -> Array{T, N}(uninitialized, m, ...)
  • logm -> log, expm -> exp, sqrtm -> sqrt
  • union() -> Set().
  • A_mul_B! -> mul! and co
  • isleaftype -> isconcretetype kill isleaftype JuliaLang/julia#25496
  • isabstract-> isabstracttype kill isleaftype JuliaLang/julia#25496
  • doc" " -> @doc doc""
  • iteratorsize -> IteratorSize
  • digits keyword argument to round.
  • parse -> Meta.parse
  • prod, sum needs to take dims keyword
  • linspace to range with keyword arguments
  • Automatically escape previously invalid escape sequences in strings
  • showcompact
  • eval -> Core.eval
  • atan2 -> atan
  • Compat.@__MODULE__ -> @__MODULE__
  • parse(Int, s, b) -> parse(Int, s, base=b).
  • is_unix -> Sys.isunix

Some of these might be unsafe to do without semantic analysis. Look into using https://github.com/ZacLN/StaticLint.jl and see how well it can be used to figure out where the binding originate from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions