44
you are viewing a single comment's thread
view the rest of the comments
[-] syklemil@discuss.tchncs.de 2 points 4 days ago

Isn't that sort of just the cost of doing business in C? It's a sparse language, so it falls to the programmer to cobble together more.

I do also think the concrete example of emails should be taken as a stand-in. Errors like swapping a parameter for an email application is likely not very harmful and detected early given the volume of email that exists. But in other, less fault-tolerant applications it becomes a lot more valuable.

[-] bitcrafter@programming.dev 1 points 3 days ago

C supports passing structs around by value, so there was no need to allocate memory for it on the heap.

this post was submitted on 28 Mar 2025
44 points (97.8% liked)

Programming

19301 readers
48 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS