Skip to content

Conversation

@fperrad
Copy link
Contributor

@fperrad fperrad commented May 29, 2019

No description provided.

@fperrad
Copy link
Contributor Author

fperrad commented Jun 12, 2019

Like #274, this serie improves the code consistency.
Except the commit avoid assignment inside condition which removes an idiom.

@sjaeckel
Copy link
Member

sjaeckel commented Sep 2, 2019

I guess it's pretty clear that the 4 commits besides "avoid assignment inside condition" aren't worth a discussion.

I added you guys as reviewers to comment on the advantages and disadvantages of keeping as is vs. merging the "avoid assignment inside condition" change.

@sjaeckel sjaeckel self-requested a review September 2, 2019 16:52
@minad
Copy link
Member

minad commented Sep 2, 2019

I would not merge the assignment commit. Besides that, it is fine with me.

Copy link
Contributor

@czurnieden czurnieden left a comment

Choose a reason for hiding this comment

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

Nice as always, @fperrad , thanks!

Regarding the "assignment" commit: that's a matter of style.
I have no style, you can even catch me wearing a bright green shirt in combination with dark blue denim, so don't drag me into it, I'll follow the majority here ;-)

But joking aside: LTM has no "style-sheet" beside the astyle-config. Should it have one (e.g.: a wiki page)? It would make it easier for new comitters like e.g.:@MasterDuke17 who asked me what I mean by "needs some formatting & style adaption" and I wasn't able to point them to a single point of information.

@minad
Copy link
Member

minad commented Sep 2, 2019

Well, the code style is with assignments as of now. There is no harm as it is. Why change it? I think I said it before - while I like consistency, I don't like pure style changes. They obfuscate the git history. The other commits in this PR are better, for example scope or error handling with goto - these improve the code.

@sjaeckel
Copy link
Member

sjaeckel commented Sep 2, 2019

@fperrad can you please rebase and remove the 'avoid assignment inside condition' commit

Copy link
Member

@minad minad left a comment

Choose a reason for hiding this comment

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

Looks good

@sjaeckel sjaeckel merged commit 1ed7644 into libtom:develop Sep 3, 2019
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.

4 participants