stacks-network / stacks-network/stacks-core

Illegal use of reserved keywords should be caught during contract analysis

Open
#7,124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

clarity-next-candidate clarity-type-checker
Dominant language
Rust
Stars
3.1k
Forks
762
Avg merge
4d 6h
Merged PRs (30d)
76

Description

There is a lot of discussion on this issue on the blockchain repo: https://github.com/stacks-network/stacks-blockchain/issues/3176

I will not duplicate all of it here, but the question is about whether the builtin functions and keywords should be reserved or if they can be freely used as variable and function names. Regardless of the answer to that question, we should ensure that the analysis-time behavior is the same as the run-time behavior.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the discussion in stacks-blockchain issue 3176, then trace how reserved keywords and builtin functions are handled during contract analysis and at runtime. Done means the analysis-time behavior consistently matches the runtime behavior, with the reservation policy resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain, compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.