• BB_C@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    No

    struct Shapes<const N: usize>([Shape; N])
    
    impl<const N: usize> Shapes<N> {
     const fn area(&self) -> f64 { /* ... */ }
    }
    

    Bad article 🤨