this post was submitted on 07 Apr 2024
0 points (NaN% liked)

Programmer Humor

19551 readers
976 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

top 3 comments
sorted by: hot top controversial new old
[–] FizzyOrange@programming.dev 1 points 7 months ago

Neat FP style. Pretty verbose though. Someone should invent a terser syntax so you don't need to write do_two_things everywhere. It's a common operation so maybe it could even be a single character.

[–] tatterdemalion@programming.dev 0 points 7 months ago* (last edited 7 months ago) (1 children)

~~You can replace return foo with just foo.~~

[–] Username@feddit.de 0 points 7 months ago

Not here, because it's being used as a function argument.