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

Use empty struct to protect writing #566

Merged
merged 1 commit into from
Mar 19, 2020

Commits on Dec 23, 2019

  1. Use empty struct to protect writing

    Using empty struct for signaling is more idiomatic
    compared to booleans because users might wonder
    what happens on false or true. Empty struct removes
    this problem.
    
    There is also a side benefit of occupying less memory
    but it should be negligible in this case.
    ferhatelmas committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    b14960f View commit details
    Browse the repository at this point in the history