Comments (9)
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.
I'd be fine with that change. This should also be a little simpler once we merge #12.
from intervals.jl.
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.
Or display
?
from intervals.jl.
Either way we're still committing type piracy though.
from intervals.jl.
Are we? Is base_method(::BaseType{MyType})
type piracy?
from intervals.jl.
Yes, that's why changing show(::IO, ::Type{T})
for any T
is problematic, as Jeff noted in the linked issue.
from intervals.jl.
Closed by #30.
from intervals.jl.
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)
- Add support for rand() HOT 2
- Support converting between `DateTime` and `ZonedDateTime` interval types HOT 6
- Constructor of Interval inherently type unstable? HOT 1
- Multirange type HOT 1
- CI failure: display tests fail on julia v1.7
- Transitive dependencies on TimeZones.jl HOT 1
- How do I make an unbounded interval? HOT 1
- TagBot trigger issue HOT 6
- Phase out `intersect(::AbstractInterval, ::AbstractInterval) -> AbstractInterval` HOT 1
- Unconventional definitions of inequality
- StepRangeLen broken for AnchoredIntervals on Julia 1.8
- stackoverflow from recursive call in `find_intersections`
- `union` example in doc is wrong
- Storing open-ness as a type parameter makes Postgres parsing type unstable HOT 4
- bug in `intersect` HOT 3
- Drop all hardcoded reference to ZonedDateTime
- Link not formatted properly in documentation
- Reconsider explict bounds parameters for anchored intervals
- Use Infinity.jl for representing Bounded vs Unbounded intervals HOT 1
- 0.0 <= Interval{Float64, Closed, Closed}(0.0, 1.0) returns false HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intervals.jl.