[RFC] Return type of scaling for non-parametric colors
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- backend
调研方向
Read the discussion of issues #56, #148 and ColorTypes.jl#235, along with the FixedPointNumbers.jl#207 decision referenced here. The examples specify desired scaling return types, while the body says the Bool cases are planned for PR #153 and other cases for v0.10; check that work before choosing a remaining scope. Done means the agreed multiplication and division cases return the specified types.
由索引模型根据 Issue 内容生成。
描述
This is related to issue #56, #148, and https://github.com/JuliaGraphics/ColorTypes.jl/issues/235.
I think the following return types are reasonable and leave little room for debate.
julia> RGB24(1) * 1.0
RGB{Float64}(1.0,1.0,1.0)
julia> RGB24(1) / 1.0
RGB{Float64}(1.0,1.0,1.0)
julia> RGB24(1) / 1
RGB{Float32}(1.0f0,1.0f0,1.0f0)
The following is a bit controversial, but consistent with the decision in FixedPointNumbers (cf. https://github.com/JuliaMath/FixedPointNumbers.jl/pull/207).
julia> RGB24(1) * 1
RGB{Float32}(1.0f0,1.0f0,1.0f0)
However, I think the following should return RGB24 objects.
julia> RGB24(1) * 1N0f8
RGB{N0f8}(1.0,1.0,1.0)
julia> RGB24(1) / 1N0f8 # This should return `RGB{Float32}` in the first place, but that is a orthogonal problem.
RGB{N0f8}(1.0,1.0,1.0)
julia> RGB24(1) * true
RGB{N0f8}(1.0,1.0,1.0)
I'm going to fix the obviously problematic cases regarding Bool in PR #153 and release it in v0.9.5. For other cases, I am planning to change them in v0.10 with new one.
- 主要语言
- Julia
- 星标
- 59
- 派生
- 24
- 平均合并
- 13 小时 2 分钟
- 30 天内合并 PR
- 15
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaGraphics/ColorVectorSpace.jl 的其他 Issue
-
tagbot-manual
难度 1/5 1 小时以内 新手友好度 25/100
JuliaGraphics/ColorVectorSpace.jl#233 · 1 条评论 ·
维护者通常 1 天内回复
-
breaking
难度 3/5 1-2 天 新手友好度 52/100
JuliaGraphics/ColorVectorSpace.jl#213 · 2 条评论 ·
维护者通常 1 天内回复
-
breaking
难度 4/5 3-5 天 新手友好度 45/100
JuliaGraphics/ColorVectorSpace.jl#208 ·
维护者通常 1 天内回复
-
feature good first issue help wanted
难度 2/5 1-3 小时 新手友好度 45/100
JuliaGraphics/ColorVectorSpace.jl#181 ·
维护者通常 1 天内回复
-
breaking bug
难度 3/5 1-2 天 新手友好度 52/100
JuliaGraphics/ColorVectorSpace.jl#178 · 1 条评论 ·
维护者通常 1 天内回复
查看 JuliaGraphics/ColorVectorSpace.jl 的全部 Issue
相似的 Issue
-
backport 1.14 GC
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
JuliaDiff/TaylorSeries.jl#445 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
SciML/PETScDiffEq.jl#362 ·
维护者通常 1 天内回复
-
dependencies
难度 2/5 1-3 小时 新手友好度 65/100
Open-MBEE/OpenSysML#1951 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
🕷️ bug
难度 2/5 1-3 小时 新手友好度 78/100
CliMA/ClimaSeaIce.jl#203 ·
维护者通常 3 天内回复