argotorg / argotorg/solcore

Checked arithmetics

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
113
Forks
9
Avg merge
4d 9h
Merged PRs (30d)
1

Description

Was thinking about checked/unchecked math, and I think the easiest would be making the default syntactic sugar reduce to the checked math implementation, and the unchecked version would require the user to explicitly use `Unchecked.add(x, y) -> z`

The `unchecked {}` block syntax in solidity is nice, but not sure yet it is worth the added complexity (tracking mode within sub-blocks). It is rarely used for need, in many cases it is used for hyper-optimized code. And those optimization cases ideally can be solved by a smarter compiler/language.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue is a design proposal for checked and unchecked arithmetic syntax in the experimental Solidity compiler. Start by locating the compiler's arithmetic syntax and implementation, then determine how checked arithmetic is currently represented. Done means the default arithmetic behavior and explicit Unchecked.add form are specified and implemented, with the treatment of unchecked blocks resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, solidity
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.