this post was submitted on 11 Jun 2025
88 points (86.7% liked)

Programming

21127 readers
411 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
 

cross-posted from: https://lemmy.world/post/31184706

C is one of the top languages in terms of speed, memory and energy

https://www.threads.com/@engineerscodex/post/C9_R-uhvGbv?hl=en

you are viewing a single comment's thread
view the rest of the comments
[–] RheumatoidArthritis@mander.xyz 10 points 2 weeks ago (8 children)

I understand your point but come on, basic stuff has been implemented in a thousand libraries. There you go, a macro implementation

[–] witx 2 points 1 week ago (3 children)

And how testable is that solution? Sure macros are helpful but testing and debugging them is a mess

[–] RheumatoidArthritis@mander.xyz 1 points 1 week ago (1 children)

You mean whether the library itself is testable? I have no idea, I didn't write it, it's stable and out there for years.

Whether the program is testable? Why wouldn't it be. I could debug it just fine. Of course it's not as easy as Go or Python but let's not pretend it's some arcane dark art

[–] witx 1 points 1 week ago* (last edited 1 week ago)

Yes I mean mocking, faking, et. al. Not this particular library but macros in general are not pleasant for that.

Besides there's all the type info you lose with macros

load more comments (1 replies)
load more comments (5 replies)