-
Given the following code:
```
class C {
void invokeExtensionMethod() {
methodOnExtension();
}
}
extension E on C {
void methodOnExtension() {}
}
```
is the invocation of `methodOn…
-
Last week I noticed that current spec is throwing different types of Error depending on ordering of declaration and usage of private members. While I understand the reason behind both evaluations, I'm…
-
At https://github.com/dart-lang/co19/blob/c33859f6ad09a273ea27c7788f25fc6fd520d3b1/LanguageFeatures/Extension-methods/semantics_of_extension_members_t05.dart#L25
the invocation of `isEven` must res…
-
It would be useful to have a `Mutex::with` method with the signature:
```
pub fn with(&self, func: impl FnOnce(&mut T) -> U) -> LockResult
```
This would be a convenience for quick access to a l…
-
From ES6 & Beyond - Chapter 2: Syntax I couldn't understand whether `const` declaration is subject to the variable hoisting?
example:
;(function () {
"use strict";
const…
-
See comment to commit https://github.com/miraisolutions/compareWith/commit/7b532033f7bb28241228d0b6348e8c4f8c62e967#r33984145
> I might be missing something, and I think it would have been nice to …
-
When variables are defined with `const`, they cannot be reassigned or redefined with `let`. But it seems like they can be redefined with the `const` keyword.
![constant redefined1](https://user-ima…
alcen updated
5 years ago
-
# Steps to reproduce
Compile the following with dotnet build
```c#
using System;
namespace exitcodes
{
class Program
{
static int Main(string[] args)
{
…
-
We throw an early error if a private name is accessed but not declared,
```
class A {
foo() {
this.#a = 1; // this throws an early error
}
}
```
For private accessors, we don't thr…
-
It might be worthwhile doing a bit of work to go through the codebase and update `var`s to `let` and `const` -- which have lexical scoping rules that make it harder to shoot yourself in the foot.