this post was submitted on 28 Jan 2024
49 points (90.2% liked)

Programmer Humor

37423 readers
69 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] eluvatar@programming.dev 3 points 2 years ago (1 children)

I mean it could just always return the same thing...

[–] MyFeetOwnMySoul@lemmy.ca 3 points 2 years ago (1 children)

I would think that role is filled by constants.

[–] akariii@lemmy.blahaj.zone 3 points 2 years ago (1 children)

where we're going, constants are just functions

[–] MyFeetOwnMySoul@lemmy.ca 1 points 2 years ago

Java 2: you can program anything you want but it has to be a function.