(eight && ...)

First blog post!

Published on: August 02, 2024

Welcome to my blog! This is just a test post, real content coming soon…

void welcome(const char* name = nullptr) {
  std::printf("Hello %s!", name ?: "world");
}
function welcome(name?: string) {
  console.log(`Hello ${name ?? 'world'}!`);
}
welcome :: Maybe String -> IO()
welcome x = case x of
  Just name -> print $ "Hello " ++ name ++ "!"
  Nothing   -> print "Hello world!"
macro_rules! welcome {
  ($e: expr) => { print!("Hello {}!", $e) };
  () => { welcome!("world") };
}