argotorg / argotorg/solidity

static_assert

Open
#8,146 20 comments 2 reactions 0 assignees View on GitHub
high impact language design :rage4: medium effort must have eventually needs design
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

`require` and `assert` can be used to write formal specs into Solidity, but many people don't because they automatically lead to extra bytecode increasing gas costs.
`static_require` and `static_assert` could be logical only, without code generation.
One variation would to also generate code if compiled in debug mode (or similar).

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points; begin by locating the compiler handling for Solidity require/assert and reviewing how bytecode generation is tested. Done means a settled design and implementation for logical-only static_require/static_assert, with debug-mode code generation only if that variation is accepted.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.