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

Return nothing in models #18

Open
VEZY opened this issue Nov 26, 2024 · 0 comments
Open

Return nothing in models #18

VEZY opened this issue Nov 26, 2024 · 0 comments

Comments

@VEZY
Copy link
Member

VEZY commented Nov 26, 2024

Without an explicit return statement, Julia returns the last evaluated line. This may be a problem for models with if-else statements that may return a different type depending on the branches it takes. This is bad because everything happens at runtime. In this case, we should explicitly return nothing.

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

No branches or pull requests

1 participant