53
submitted 7 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
top 10 comments
sorted by: hot top controversial new old
[-] samc@feddit.uk 13 points 7 months ago
[-] vext01@lemmy.sdf.org 10 points 7 months ago
[-] yogthos@lemmy.ml 1 points 7 months ago

We're not savages, we use structural sharing in our data structures. :)

[-] Dirk@lemmy.ml 7 points 7 months ago
[-] MyFeetOwnMySoul@lemmy.ca 5 points 7 months ago

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

[-] eluvatar@programming.dev 3 points 7 months ago

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

[-] MyFeetOwnMySoul@lemmy.ca 3 points 7 months ago

I would think that role is filled by constants.

[-] akariii@lemmy.blahaj.zone 3 points 7 months ago

where we're going, constants are just functions

[-] MyFeetOwnMySoul@lemmy.ca 1 points 7 months ago

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

[-] Dirk@lemmy.ml 1 points 7 months ago

Classes are just functions!

this post was submitted on 28 Jan 2024
53 points (90.8% liked)

Programmer Humor

32050 readers
1536 users here now

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

Rules:

founded 5 years ago
MODERATORS