Will Crichton personal blog

Implementing a Type-safe printf in Rust

I show how to use heterogeneous lists and traits to implement a type-safe printf in Rust. These mechanisms can ensure that two variadic argument lists share important properties, like the number of format string holes matches the number of printf arguments.
Points
119
HN comments
59
Submissions
1
Cited by
0 commenters

Software EngineeringProgramming Languages2020

On Hacker News

SubmittedTitle on HNPointsComments
Aug 14, 2020Implementing a Type-safe printf in Rust by lukastyrychtr11959

More from Will Crichton

All 7 posts →

Related posts from the same era