this post was submitted on 26 Aug 2024
700 points (100.0% liked)

Programmer Humor

421 readers
79 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] xigoi@lemmy.sdf.org 2 points 2 months ago

Why not just add function overloading to the language and have a function named copy that takes a string and an optional character count?