Defining a built-in operator has no effect
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the boltlang-hir-ty crate and tracing how operator definitions are handled versus how built-in + expressions are resolved. Decide whether definitions should participate in resolution through a class such as Num or produce a diagnostic. Done means a definition has the chosen observable behavior, with a regression test covering it.
Written by the indexing model from the issue text.
Description
Defining a built-in operator, like fn a + b, has no effect: + in expressions is still built in. Only other operators, like <>, call their definition.
Either such definitions should be used, through a class like Num, or they should be reported.
Crates: boltlang-hir-ty.
- Dominant language
- Rust
- Stars
- 54
- Forks
- 3
- Avg merge
- 4m
- Merged PRs (30d)
- 18
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boltlang/Bolt
-
discussion documentation
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug scope:types
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug scope:types
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement scope:diagnostics scope:syntax
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Named mutabilities on literals, like 'm Box { .. }Possibly taken @samvv claimed this today. Opendiscussion scope:syntax scope:types
boltlang/Bolt#208 · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
QuartoHub: have the Document name before the filename in the browser tabPossibly taken @cscheid claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/q2#930 · 1 comment ·
Maintainers usually reply within 1 day
-
muse P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
HerringtonDarkholme/hd-lang#923 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
longbridge/gpui-kit#3712 ·
Maintainers usually reply within 1 day
-
documentation enhancement SIEM
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ADORSYS-GIS/wazuh-agent-status#265 ·
Maintainers usually reply within 2 days