Skip to content

Date(::String, ::DateFormat) isn't type stable #13644

@quinnj

Description

@quinnj

Placeholder issue so I remember:

julia> @code_warntype Date("2015-01-01",Dates.DateFormat("yyyy-mm-dd"))
Variables:
  dt::ASCIIString
  df::Base.Dates.DateFormat

Body:
  begin  # dates/io.jl, line 205:
      return (top(_apply))((top(getfield))(Base.Dates,:call)::F,Base.Dates.Date,(Base.Dates.parse)(dt::ASCIIString,df::Base.Dates.DateFormat)::Array{Any,N})::Any
  end::Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    datesDates, times, and the Dates stdlib module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions