Skip to content
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

Static Typing #26

Open
reubenharry opened this issue Oct 14, 2023 · 2 comments
Open

Static Typing #26

reubenharry opened this issue Oct 14, 2023 · 2 comments

Comments

@reubenharry
Copy link
Collaborator

I'm planning to add as many static types as possible to the code, e.g. sample(self, num_steps : int,...). This has two benefits:

  1. Prevents many simple bugs
  2. Makes the code much easier to read/use. For example, simply by looking at the type judgment x_initial : str | jaxarray , one would see that x_initial must be either a str or a jax array.
@JakobRobnik
Copy link
Owner

JakobRobnik commented Oct 14, 2023 via email

@JakobRobnik
Copy link
Owner

JakobRobnik commented Oct 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants