argotorg / argotorg/solidity

Parse ``immutable`` as data location.

Open
#13,368 20 comments 0 reactions 0 assignees View on GitHub
high impact medium effort roadmap selected for development
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

First step in https://github.com/ethereum/solidity/issues/13323.

Previously, we considered adding a ``code`` data location - however, since EOF will have an actual data section, ``code`` as keyword may actually be misleading. So we intend to stick with more semantic term ``immutable``, but change it from only a qualifier for state variables to a full data location as well.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked issue #13323 and the discussion of EOF's data section, the proposed `immutable` data location, and why `code` is misleading. Trace how data locations and the `immutable` state-variable qualifier are parsed in the Solidity compiler. Done means `immutable` works as the intended full data location without breaking its existing qualifier use, with the relevant parser and semantic behavior covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, solidity
Domain
blockchain, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.