-
Is there an easy way to modify this script to ignore angle brackets **if** they are preceded by an '=' so that '=>' doesn't count towards the stack of bracket pairings?
-
Rational: we should avoid unnecessary clutter
-
Here's a simple example that generates UndefinedVariable for using the Arrow Functions and compact method.
```php
$something = fn ($arg) => compact('arg'); // Unused function parameter $arg. (Var…
-
The functions `arr3`, `arr4` and `arr5` in the `FRP.Yampa.Arrow` module are not used in the wild. They also don't really belong in Yampa, since they are generic for arrows.
A search online shows th…
-
See: https://codecraft.tv/courses/angular/es6-typescript/arrow/
Fat arrow functions have a concise syntax and, most importantly, doesn't change the calling context for `this`.
```javascript
let o…
-
1. `src/content/docs/04-functions/02-fns-arrowfunction.md` could be renamed to `02-fns-arrow-function.md`
2. `src/content/docs/05-string/16-str-levensthein.md` has a typo
-
```
deno 2.0.0 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.13-rusty
typescript 5.6.2
```
`deno lint` does not enforce the `explicit-function-return-type` rule.
Assuming the follo…
tainn updated
1 month ago
-
Arrow functions have been [included in ACF since 2018](https://community.adobe.com/t5/coldfusion-discussions/get-started-with-arrow-functions-in-coldfusion-2018-release/td-p/10630274), however CFLint …
-
https://github.com/lukehoban/es6features#arrows
-
## 函数语法选择
箭头函数的特点是:
1. 语法简单
2. 固定this
3. babel编译后性能会较低(因为固定this)
建议如下:
1. 在模块作用域(顶级作用域)的函数都使用`function foo() {}`,不要用箭头函数,这里用不了`this`
2. 如果需要变`this`或`this`不是当前词法`this`的,使用`function foo() {}`,典型的就是声明一…