Unfriendly error message from bfsqrt
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- backend
调研方向
Start at the implementation and tests for the bfsqrt entry point in the math/bigfloat library. Reproduce the non-bigfloat call shown in the issue, compare it with the valid (bf 2) case, and confirm that invalid input produces a Racket-level error while valid behavior remains unchanged.
由索引模型根据 Issue 内容生成。
描述
If by accident bfsqrt is given a non-bigfloat the error message doesn't come from the Racket layer.
Welcome to Racket v7.6.
> (require math/bigfloat)
> (bfsqrt 2)
; mpfr->C: argument is not non-null `mpfr' pointer
; argument: 2
; [,bt for context]
> (bfsqrt (bf 2))
(bf #e1.414213562373095048801688724209698078569)
- 主要语言
- Racket
- 星标
- 40
- 派生
- 32
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
racket/math 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 20/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
melgarafael/DeskcommCRM#3000 ·
维护者通常 1 天内回复
-
OFN writer emits `DocIRI` as a bare IRI, which becomes a version IRI or a parse error on re-read未关闭
难度 2/5 1-3 小时 新手友好度 72/100
phillord/horned-owl#338 ·
维护者通常 1 天内回复
-
ai-driven-qa bug Cosmetic
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100