this post was submitted on 06 Sep 2023
148 points (94.6% liked)

Programmer Humor

32426 readers
979 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] astarob@sh.itjust.works 7 points 1 year ago* (last edited 1 year ago) (2 children)

It’s just compile time code execution.

The difference between those macros („procedural macros“) and regular macros is that while regular macros are pretty much only templated code that is unfolded, proc macros contain code that is run at compile time, so they are more powerful but also more dangerous from a security perspective as you would expect just compiling a program to be safe.

Also: is copy pasting ChatGPT answers a thing now even when you, as you said, don’t even know what it means??

[–] Cornelius@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

Also: is copy pasting ChatGPT answers a thing now even when you, as you said, don’t even know what it means??

As long as it's annotated as such I don't mind, even if it's wrong. And if it's wrong you're more likely to get people to actually respond via a "umm but actually" type response

[–] Quexotic@sh.itjust.works 2 points 1 year ago

GPT is fairly useful but I definitely don't trust it implicitly. Lol

[–] Quexotic@sh.itjust.works 1 points 1 year ago

I understood the answer, not the meme. I guess I wasn't clear. Sorry internet friend. Clearly GPT was lacking some nuance too, as evidenced by some discussion ITT.