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

Make zero Fuse value usable #1

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Conversation

dennwc
Copy link
Contributor

@dennwc dennwc commented Feb 26, 2024

Zero value of standard synchronization primitives like sync.Mutex and sync.WaitGroup are valid. One may expect similar behavior from core.Fuse, where it can be added as a struct field and used without additional initialization.

This change makes Fuse a struct and updates the logic to allow using zero values. Unfortunately due to the change from interface to struct, the change is breaking (requires to remove the constructor or field type).

Zero value of synchronisation primitives like sync.Mutex and sync.WaitGroup are valid. One may expect similar behavior from Fuse, where it can be added as a struct field and used without additional initialization.

This change makes Fuse a struct and updates the logic to allow using zero values. Unfortunately due to the change from interface to struct, the change is breaking (requires to remove the constructor).
@frostbyte73 frostbyte73 merged commit b6c202a into frostbyte73:main Feb 26, 2024
@dennwc dennwc deleted the zero_fuse branch February 26, 2024 18:54
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.

2 participants