Return types Memes

Posts tagged with Return types

What Is Wrong With My Code

What Is Wrong With My Code
So you wrote a function that returns void, then proceeded to return null, and wrapped a println statement in a let binding that does absolutely nothing. This is what happens when you copy-paste code from three different languages and hope the compiler just figures it out. The function signature screams Rust or Kotlin, the println looks like Rust, but that return null? That's your brain on Java. Pick a lane, my friend. The compiler is not a therapist—it won't help you work through your identity crisis.

This Is A Joke About Holy C

This Is A Joke About Holy C
The evolution of main function signatures, from basic to absolutely transcendent. Starting with the peasant-tier function main() , ascending through int main() (slightly more enlightened), reaching void main() (controversial but galaxy-brained), and finally achieving divine consciousness with U0 main() . For the uninitiated: U0 is HolyC's void type, the programming language created by the late Terry Davis for TempleOS—an entire operating system built by one man who claimed to be building God's temple. U0 represents the ultimate return type: nothing, because when you're programming for divine purposes, what even is a return value? You don't return to the OS, you return to the heavens. The ascension makes perfect sense: regular developers use functions, smart developers return integers, galaxy brains use void, but only the truly enlightened use U0 and compile their code in 640x480 16-color glory while talking directly to God through random number generators.

I Like My Fun Main Args String

I Like My Fun Main Args String
Ah, the classic programming love story that was doomed from the start. She returns values, he doesn't return anything – basically the relationship equivalent of sending texts and getting left on read. The compiler warned him they were incompatible, but he disabled warnings with -w and compiled anyway. Their entire relationship was just her waiting for him to return something meaningful while he just... existed. And people wonder why programmers have commitment issues.