Show HN: FizzBuzz purely in Rust's trait system
1–10 of 32 posts
Re: Show HN: FizzBuzz purely in Rust's trait system
#2Re: Show HN: FizzBuzz purely in Rust's trait system
#3Interesting implementation of `If`, I had no idea the trait system could be... used... to such extent.
Re: Show HN: FizzBuzz purely in Rust's trait system
#4 type If = >::Output;Re: Show HN: FizzBuzz purely in Rust's trait system
#5On the "clunky syntax" doc comment: a thing typenum does repeatedly is to define generic typedefs that become trait exprs. For example, type If = >::Output;
Re: Show HN: FizzBuzz purely in Rust's trait system
#6Re: Show HN: FizzBuzz purely in Rust's trait system
#7Re: Show HN: FizzBuzz purely in Rust's trait system
#8Someone looking for the unbeatable https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... ?
Re: Show HN: FizzBuzz purely in Rust's trait system
#9Someone looking for the unbeatable https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... ?
Seems unrelated. Does Java have a compile-time feature that is Turing complete and can be (ab)used to write FizzBuzz? For example, C++ has such a feature: https://gist.github.com/bgaff/2496338 (there's more examples, try searching for "accidentally Turing-complete", there are some really fun solutions.)
Re: Show HN: FizzBuzz purely in Rust's trait system
#10Someone looking for the unbeatable https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... ?
Seems unrelated. Does Java have a compile-time feature that is Turing complete and can be (ab)used to write FizzBuzz? For example, C++ has such a feature: https://gist.github.com/bgaff/2496338 (there's more examples, try searching for "accidentally Turing-complete", there are some really fun solutions.)