Comment

Comment by RcouF1uZ4gsC

    tuple_impls! {}
    tuple_impls! { A }
    tuple_impls! { A B }
    tuple_impls! { A B C }
    // .. more macro invocations follow
    // we support method arities up to 16
    tuple_impls! { A B C D E F G H I J K L M N O P }

Rust really needs the equivalent of C++ variadic templates. Is there any work ongoing on it?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton