-
Notifications
You must be signed in to change notification settings - Fork 14
Passing Parameters by Value #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
_Why is this important?_ | ||
_Why do we want to learn/teach this topic?_ | ||
|
||
The fundamental element for code-reuse is a function. For functions to be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say "code modularization". Many functions are only called once, so there is often no reuse.
_The next word should be an action word and testable in an exam._ | ||
_Max 5 items._ | ||
|
||
A student should be able to: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds more like an outcome for general "function calling" topic, rather than the specialized "calling by value" topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is "function calling". But we distinguish the topic name from "calling by reference" as we expect this to be more foundational than understanding "call by reference" as the later is more complex in grammar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that depends on the meaning of is. The title of this topic is "passing by value". Parameter type & count agreement is more basic, and presumably will use examples where non-variable expressions are used, meaning f(1.0,"foobar")
, just to avoid the value/reference distinction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small comments.
Issue #38