pc2 / pc2/sus-compiler

Variadic Template args

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Language Design
Dominant language
Rust
Stars
126
Forks
6
PR merge metrics
No merged PRs in 30d

Description

So I don't really see the need for tuples as a language feature. SUS already has multi-output interfaces, which is a prime motivation for languages to include tuples.

However, for template arguments tuples are really handy. Could we instead provide variadic template types, such that we can pass multiple args together as one "template arg"?

The prime example is the FIFO, again.

myFIFO f
int x, double d, Vec3 v
f.push(x, d, v)

int y, double dd, Vec3 outV = f.pop()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue proposes variadic template types for passing multiple values together, using a FIFO as the example. No files, tests, or entry points are identified; first locate template argument handling and the FIFO implementation, then establish the intended semantics and tests for the feature.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.