HNHacker News
TopNewBestAskShowJobs

kaikalii

53 karma · joined December 2, 2021

submissionscomments
kaikalii··on Uiua: A minimal stack-based, array-based language
That's some dedication! You can indeed get the maximum item in an array with `/↥`. Here is my fizzbuzz solution: (https://uiua.org/pad?src=fizzbuzz%20%E2%86%90%20%28%0A%20%20...)
kaikalii··on Uiua: A minimal stack-based, array-based language
Oh hey, I made this. Cool to see it at the top of HN!
kaikalii··on Verifying Dynamic Trait Objects in Rust (2022)

    trait Namer {
        fn first(&self) -> String;
        fn last(&self) -> String;
        // You can put this here if you want `namer.name()`
        fn name(&self) -> String {
            format!("{} {}", self.first(), self.last())
        }
    }

    fn name(n: &impl Namer) -> String {
        format!("{} {}", n.first(), n.last())
    }