Skip to content

Conversation

@jjuhl
Copy link
Contributor

@jjuhl jjuhl commented Jan 29, 2026

Some small cleanups that you may or may not like...

jjuhl added 4 commits January 29, 2026 19:08
A return statement signals that a value will be returned, so when the
function it is invoked in returns `void` that's potentially confusing.

Even though one can do `return function_returning_void();` in a `void`
returning function it should be avoided. Much more readable and less
confusing to simply call the function and then do a `return;´.

Functionally it amounts to the same thing and compilers will generate
the same code - this is purely for readability purposes.
Although the names /can/ be different it's just confusing when they are
and serves no actual purpose, so make them match.
Both versions are used in the repository, but the "operator=(" form is
much more common than the "operator= (" form, so fix it up so
everything is consistent with the most common version.

No functional difference, just ensuring a consistent style.
@texus texus merged commit 29a96fa into texus:1.x Jan 30, 2026
15 checks passed
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