-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
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
edevine, srijs, michaelmesser, kundalr, tinganho and 236 morelastmjs, alberto-fp-24, SalvatorePreviti, jonaskello, erusev and 18 morej-mcneil, wongjiahau, lastmjs, felixfbecker, jonaskello and 33 moreerusev, astoilkov, randomer, artemjackson, mrcampbell and 12 moreartemjackson, erusev, alexanderkjeldaas, AZMCode, jleider and 4 more
Metadata
Metadata
Assignees
Labels
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript