-
This is a feature request for marking functions as not having any side effects, aka being pure.
Flow reports the following safe code as unsafe:
```
/* @flow */
type T = { func: ?(number) => void };
…
-
When using the transform API with syntax lowering (e.g. for classes) or with keepNames (`--keep-names`), the code generated often look something like this:
```js
const _Foo = class _Foo {
};
__n…
-
It seems useful to flag functions without side effects as "pure"
-
**Github username:** --
**Twitter username:** --
**Submission hash (on-chain):** 0xde1d501cf2bcbbcefa04a8eb005bf5fba8dd08b0c9eec404ef2597f532e1ca2f
**Severity:** medium
**Description:**
**Descriptio…
-
# 개발자 단민 | 자바스크립트의 순수 함수와 비순수 함수
순수 함수요? 자바스크립트로 함수형 프로그래밍이 가능하다고요? 자바스크립트는 프로토타입 기반 프로그래밍 언어 아닌가요? 맞는 말이다. 자바스크립트는 프로토타입 기반 프로그래밍 언어로, 객체지향 프로그래밍 언어의 한 갈래다. 하지만 함수형 프로그래밍
[https://www.jeong-min.co…
-
# Pure Function
[wikipedia关于Pure Function的定义](https://zh.wikipedia.org/wiki/%E7%BA%AF%E5%87%BD%E6%95%B0)
- 相同输入相同输出。函数的输出和输入值以外的其他隐藏信息或状态无关,也和由I/O設備產生的外部輸出無關。
- 该函数不能有语义上可观察的函数副作用,诸如“触发事件”,使輸出設備輸出,…
-
# Pure Functions in JavaScript: A Beginner's Guide
A pure function always returns the same value for the same arguments and produces no side effects.
[https://dmitripavlutin.com/javascript-pure-func…
-
## Problem
When inferring ABIs from bytecode, WhatsABI currently omits names for tuple components that are likely derived from Solidity structs. While the ABI specification technically allows unnam…
-
**Describe the bug**
An exception in native code happens that crash the app.
**To Reproduce**
Sorry, I am not sure how to reproduce this. It happens after 10-15 seconds while using the map. Somet…
-
If the same pure function call with the same argument is present in multiple places in the Modelica source code, Common Subexpression Elimination should be applied to avoid useless repeated function c…