Re:Dtype_dispatch: A cursed Rust macro that could save you 1...
by ValentinA23 on Sunday November 17, 2024 @07:56AM
(#42163963)
>In Pcodec I now have 9 data types and 47 matches
So 9 * 47 - 47 = 376 lines the author got rid of ? Which would imply that if he adds a tenth datatype, he doesn't have to update 47 match blocks sprinkled over the whole code base ?
So 9 * 47 - 47 = 376 lines the author got rid of ? Which would imply that if he adds a tenth datatype, he doesn't have to update 47 match blocks sprinkled over the whole code base ?