Y
Hacker News
new
|
ask
|
show
|
jobs
by
pie_flavor
2218 days ago
On the "clunky syntax" doc comment: a thing typenum does repeatedly is to define generic typedefs that become trait exprs. For example,
type If<Cond, Then, Else> = <(Then, Else) as If<Cond>>::Output;
1 comments
doctor_n_
2218 days ago
I was unaware of typenum until I started showing people this - I'm actually amazed at the level of effort that's gone into it.
link