dtolnay / dtolnay/syn

Consider whether const generics supersedes the `Token!` macro

Open
#1,252 3 comments 0 reactions 0 assignees View on GitHub
blocked
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

Something like:

```rust
pub struct Token;
```

Then you'd use `Token<'+'>` for what used to be `Token![+]`, and `Token<'+', '='>` instead of `Token![+=]`, etc.

The `custom_punctuation!` macro (https://docs.rs/syn/1.0.105/syn/macro.custom_punctuation.html) would no longer be necessary because you could instantiate a `Token` with any arbitrary punctuation without needing to give it a name.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.