Alt text:

Transcendence meme template

function main() {…}

int main() {…}

void main() {…}

U0 main() {…}

/* HolyC example */
U0 Main()
{
  U8 *message = "hello world";
  "%s\n",message;
}
Main;
  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 month ago

    main =

    This message was brought to you by the Haskell gang

    let () =

    This message was brought to you by the OCaml gang

    This message was brought to you by the Python gang (only betas check __name__, assert your dominance and force every import to run your main routine /s)

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month ago

    Oh man, a zero byte long unsigned integer? Lots of languages represent it as an empty tuple these days (the “unit” type), but from quickly scanning the documentation, it looks like HolyC doesn’t support tuples, so I guess you gotta get creative…