mauro3/Parameters.jl

Date type is not displayed by default?

Datseris opened this issue · 1 comments

MWE:

abstract type Species end
struct Mouse <: Species end
struct Cat <: Species end

@with_kw struct Experiment{S<:Species}
    n::Int = 50
    c::Float64 = 10.0
    x::Float64 = 0.2
    date::Date = Date(1991, 04, 13)
    species::S = Mouse()
    scientist::String = "George"
end
# Make a couple of experiments
e1 = Experiment()
Experiment{Mouse}
  n: Int64 50
  c: Float64 10.0
  x: Float64 0.2
  date: Date
  species: Mouse Mouse()
  scientist: String "George"

You can see that the date entry is blank. doesn't display the date.

Dup of #80. This annoys me as well but I haven't gotten round to do anything about it yet. PR welcome!