microsoft / microsoft/TypeScript
add a modifier for pure functions
Open
Nobody has claimed this yet.
Needs Proposal
Suggestion
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
This is what pure means:
- no destructive operations on parameters
- all parameters must be guaranteed from being changed from the outside (immutable?)
- no calls to any other callback/function/method/constructor that doesn't have the pure modifier
- no reads from mutable values from a scope the pure function is closed over
- no writes to values in the closed scope
Contributor guide
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.
Research direction
No file, test, or entry point is named. Start by reviewing the stated purity rules and determining the modifier syntax and compiler behavior they require; done means the design is agreed and the rules are covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100