Giter Site home page Giter Site logo

Comments (9)

iamed2 avatar iamed2 commented on May 24, 2024 1

It sounds like we have to do this, so let's add showarg methods at the same time to mitigate the downside.

from intervals.jl.

rofinn avatar rofinn commented on May 24, 2024

I'd be fine with that change. This should also be a little simpler once we merge #12.

from intervals.jl.

iamed2 avatar iamed2 commented on May 24, 2024

Is it possible to override only how they're shown in the REPL? Could we override just
show(::IO, ::MIME"text/plain", ::Type{T}) where T <: ...

from intervals.jl.

iamed2 avatar iamed2 commented on May 24, 2024

Or display?

from intervals.jl.

ararslan avatar ararslan commented on May 24, 2024

Either way we're still committing type piracy though.

from intervals.jl.

iamed2 avatar iamed2 commented on May 24, 2024

Are we? Is base_method(::BaseType{MyType}) type piracy?

from intervals.jl.

ararslan avatar ararslan commented on May 24, 2024

Yes, that's why changing show(::IO, ::Type{T}) for any T is problematic, as Jeff noted in the linked issue.

from intervals.jl.

ararslan avatar ararslan commented on May 24, 2024

Closed by #30.

from intervals.jl.

vtjnash avatar vtjnash commented on May 24, 2024

JuliaLang triage asked why the example needed to be a type, rather than a singleton value? (and hopefully the type-alias-based printing in base now helps this case, assuming HourBeginning is exported!)

from intervals.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.