-
[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d5065282aa7936f6a91feb87c5b67f28)
```rust
trait WithAssoc {
type Assoc;
}
struct ImplsAssoc,
}
imp…
-
Playing around with generic associated types, I encountered what looks like a compiler bug:
```rust
trait Monad {
type M;
fn bind Self::M>(m: Self::M, f: F) -> Self::M;
fn unit(x:…
-
Is it possible to check generics?
import {check} from 'typend'
```ts
interface A {
a: T;
c: string;
}
check({
b: 'value'
})
```
this doesn't throw any errors, despite the type, de…
-
I have encountered an issue where complex intersection types are not fully represented when used in certain contexts in a generic class. Specifically, when using a callback parameter in a method, only…
-
There's an example of a generic struct on [Cap’n Proto](https://capnproto.org/language.html#generic-types) page:
```
...
struct Map(Key, Value) {
entries @0 :List(Entry);
struct Entry {
…
-
There are a few things that I think we could improve with the receiver interface. In particular I would like to investigate improving:
- *The ability to disambiguate between prvalue and xvalue result…
-
Implement parametric polymorphism / generic types such that I can write useful library functions.
-
Given the code:
```csharp
public static void TestGenericParam(IEndpointRouteBuilder app) where TUser : class
{
app.MapPost("/test-param", ([FromServices] UserManager userManager) => { });
}…
-
In the Generics type mismatch series #7432 and #7446
```Nim
type HexChars = range['0'..'9'] or range['A'..'F'] or range['a'..'f']
proc foo(x: HexChars) = discard
let a = '0'
foo(a)
```
…
-
A bit of context before you read this: oxc-project/oxc#4112
I'm working on the AST template macro, My current approach is something like this:
a. use `oxc_ast_codegen` to generate a visitor with…
rzvxa updated
2 months ago