-
Here's an example I jotted down a while ago. A slightly more practical example might be nice, but I don't think I've ever actually used mutable vectors in Haskell, nothing is immediately coming to min…
-
Implementing `ClassType` in `declare_class!` is `unsafe` because we need the user to uphold a few safety guarantees, and that was just the most convenient place to put the `unsafe` keyword.
After h…
-
```ts
type Mutable = {
-readonly [K in keyof T]: T[K] extends object ? Mutable : T[K];
};
```
-
Hello,
I am encountering few errors, when I try to build app with Flutter with command:
`flutter build ios --release --no-tree-shake-icons --flavor devel`
it returns:
```
Swift Compiler …
-
# Suggestion
## 🔍 Search Terms
- Readonly by default
- Record readonly by default
- Array readonly by default #32467
- Tuple readonly by default #40316
- Immutable-By-Default Flags #32758
#…
-
I use scim2-tester against the [scimmy-routers](https://github.com/scimmyjs/scimmy-routers) middleware for [express](https://expressjs.com/)
It appears that scimmy-test sends `$ref` sub attributes …
-
I'm trying to write future-proof code that asserts `matches!(field.mutability, FieldMutability::None)` and reports a nice error if it isn't `None`:
```rust
let Field { mutability, .. } = &mut field;…
-
Currently the `ConcurrentSlab` has an `RwLock`. As we don't do any concurrent processing in the compiler we should remove interior mutability. When profiling, the compiler seems to be spending ~80% of…
-
In VSCode mutable vars can be highlighted distinctly from immutable vars:
![Screenshot 2023-04-08 at 20 51 30](https://user-images.githubusercontent.com/90851/230738108-fa916225-b763-49b7-94dc-59ab0f…
-
**Describe the handler you are proposing.**
```py
@dataclass
class Foo:
bar = []
baz = {}
```
should be
```py
@dataclass
class Foo:
bar = field(default_factory=list)
baz = …