this post was submitted on 28 Jan 2024
0 points (50.0% liked)

Programmer Humor

32048 readers
1447 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 7 months ago (8 children)
[–] [email protected] 0 points 7 months ago (5 children)
[–] [email protected] 0 points 7 months ago (1 children)

Now, I don't functional (at all), but if you call a function with no parameters, doesn't it imply side effects?

[–] [email protected] 0 points 7 months ago (1 children)

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

[–] [email protected] 0 points 7 months ago (1 children)

I would think that role is filled by constants.

[–] [email protected] 0 points 7 months ago (1 children)

where we're going, constants are just functions

[–] [email protected] 0 points 7 months ago

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

load more comments (3 replies)
load more comments (5 replies)