Skip to content

Make Verlet integration in Nim more idiomatic #782

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

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

berquist
Copy link
Member

  • func signifies that the procedures have no side effects: they are proper functions.
  • Prefer implicit return of the last expression over explicit return.
  • when isMainModule behaves the same way as if __name__ == "__main__" in Python.

@berquist berquist added Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.) Hacktoberfest The label for all Hacktoberfest related things! hacktoberfest-accepted labels Oct 28, 2020
Copy link
Member

@leios leios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

following #783 , this can also be merged. Thanks a bunch!

@leios leios merged commit 153317d into algorithm-archivists:master Nov 11, 2020
@berquist berquist deleted the nim-cleanup-verlet branch September 6, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest The label for all Hacktoberfest related things! hacktoberfest-accepted Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants