Skip to content

Conversation

@helloworld12321
Copy link
Contributor

So that they're closer to where they're used, instead of all being at
the top of the function.

Closes #9.

So that they're closer to where they're used, instead of all being at
the top of the function.
@NicMcPhee
Copy link
Contributor

Thanks for doing this!

Your changes help make it clear that there really ought to be some helper functions there that handle those key steps, and the variable declarations would move into those helper functions. The arguments and returns would be a little awkward, though, since we'd be passing around and allocating arrays a lot. Not sure if that would make it more or less confusing for students.

@NicMcPhee NicMcPhee merged commit d093ca1 into UMM-CSci-Systems:main Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Modernize" the variable declarations

2 participants