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.
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
~~You can replace return foo
with just foo
.~~
Not here, because it's being used as a function argument.