-
## 函数语法选择
箭头函数的特点是:
1. 语法简单
2. 固定this
3. babel编译后性能会较低(因为固定this)
建议如下:
1. 在模块作用域(顶级作用域)的函数都使用`function foo() {}`,不要用箭头函数,这里用不了`this`
2. 如果需要变`this`或`this`不是当前词法`this`的,使用`function foo() {}`,典型的就是声明一…
-
Amazing course. Just curious why you always use regular functions instead of arrow functions? I know practically there isn't any difference, but just curious why you opt not to use arrow functions. Mo…
-
## What happened?
### Background
In our project, we have the ESLint rule "@typescript-eslint/unbound-method" enabled. This rule warns us, when we use non-arrow functions without their context, bec…
-
It doesn't seem to work in **Acceptance** tests with Ember 3.9 + ember-qunit: 3.5.3
-
**Describe the bug**
I'm not 100% sure whether this is an actual bug, but I decided to create a ticket anyway.
I think sniffer should fail in case run on following code:
**Code sample**
```p…
-
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
We are using polars-arrow and would prefer to move to `arrow-rs` as we are looking into using…
-
nas5w updated
5 years ago
-
Hi,
Two functions from one of Yampa's auxiliary modules have become generally useful (they were made public and they have found use in games, other applications, and other libraries):
```haskell…
-
Hi all,
I have been considering a bit on how to clean up the code, and I have seen a couple of things we could possibly do to make the more maintainable.
I do need some input on how we should move…
-
Hi,
My num pad doesn't work with the input fields (e.g. text input). Trying to turn num pad off and on doesn't help.
I use latest Fedora, so there might be some incompatibility with the system mayb…