this post was submitted on 10 Jan 2024
9 points (90.9% liked)
General Programming Discussion
7737 readers
16 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Initialization is a subset of assignment. Its initialization the first time you do an assignment.
I dont think declaration and definition overlap, but they are similar concepts. I think i would have swapped your descriptions though. Normally you have a function definition, which describes the function and its features, and you have variable declarations, which is literal objects/bits of memory.
Please dont take this response as gospel, i am not super happy with it :/