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

Add NONE constant for an empty AtomicLazyCell #87

Closed
wants to merge 1 commit into from
Closed

Add NONE constant for an empty AtomicLazyCell #87

wants to merge 1 commit into from

Conversation

sagebind
Copy link
Contributor

Add an associated constant for an empty AtomicLazyCell. This is useful in statics and in other places requiring const expressions.

Maybe when const fn becomes stable, we could make new() also be const. For now this is a relatively elegant workaround.

Add an associated constant for an empty `AtomicLazyCell`. This is useful in statics and in other places requiring const expressions.
@indiv0 indiv0 closed this in 31aff0d Sep 10, 2018
@indiv0
Copy link
Owner

indiv0 commented Sep 10, 2018

Merged. Thank you for your PR @sagebind.

@sagebind sagebind deleted the atomic-lazy-cell-constant branch September 10, 2018 23:45
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.

None yet

2 participants