-
Written on 05/31/2016 14:35:05
URL: https://dmitripavlutin.com/when-not-to-use-arrow-functions-in-javascript/
-
``` javascript
var a = (@Ann a:number):string => {};
```
```
traceured.js:1:10: Unexpected token @
traceured.js:1:16: Unexpected token :
traceured.js:1:24: Semi-colon expected
traceured.js:1:24: Unex…
-
To simplify a code, it would be nice to have arrow function where possible.
There is a ESLint rule for it: https://eslint.org/docs/latest/rules/arrow-body-style
Draft implementation: https://gi…
-
When instrumenting code for code coverage there will be additional operations injected into real arrow functions associated with derive. Since derive doesn't support SequenceExpressions this causes a …
-
### What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
### What platform is your computer?
Linux 6.5.2-zen1-1-zen x86_64 unknown
### What steps can reproduce the bug?
…
nyz93 updated
3 months ago
-
It looks like that prettier wraps the function execution in the return value of the arrow function below, in parentheses. Plus it breaks line in the return value while it's unnecessary.
**Note:** Thi…
-
**Prettier 1.11.1**
[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEEBucBOAbAhgTwGUYJM4A6AZwAsIB3AFTgA8YAKAHSgAJuOQAopkykk3AHIQY3bBADmcuABNuASyj8ANHx58QABWxxclONzKzcKmNTMAHXIu64oK…
-
@magopian run into the problem with a following code snippet:
```js
const Tag = {
modify:
( id:ID ):(action:action) => Action =>
( action ) =>
( { type: "Modify"
, id
…
-
The class was defined as followed:
``` javascript
var Test = goog.defineClass(null, {
constructor: function(){},
statics: {
test: () => console.log('This is a test')
}
});
```
http://clos…
-
Input for `SIMPLE_OPTIMIZATIONS`:
```
throw ((arguments) => { })
```
Error output:
```
Exception in thread "main" java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this …