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

Eliminate recommendation to use atsign-assert #1363

Merged
merged 3 commits into from
Sep 10, 2021
Merged

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented Aug 25, 2021

Ugh, didn't realize this was still hanging around.

@github-actions
Copy link

Once the build has completed, you can preview your PR at this URL: https://julialang.netlify.app/previews/PR1363/ in ~15 minutes

@@ -625,8 +625,7 @@ false
```

Even though `double` can't be compiled for `String`, the corresponding `precompile` doesn't error, it only returns `false`.
If you want to monitor the utility of your `precompile` directives, sometimes it's useful to preface them with `@assert`; all's well if precompilation succeeds, but if changes to the package mean that the precompile directive has "gone bad," then you get an error.
Hopefully, such errors would be caught before shipping the package to users!
Julia 1.7 will warn about inactive precompile directives.
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

maybe...

@ViralBShah
Copy link
Member

@timholy Is this ok to merge?

@timholy
Copy link
Sponsor Member Author

timholy commented Sep 10, 2021

It seems settled now, so yes. I updated the branch, when the tests finish this can be merged.

@ViralBShah ViralBShah merged commit 5c5cafa into main Sep 10, 2021
@ViralBShah ViralBShah deleted the teh/no-assert branch September 10, 2021 16:10
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.

3 participants