Skip to content

chore: implicit assignments#2664

Merged
maelle merged 1 commit into
mainfrom
implicit_assignment
Jun 4, 2026
Merged

chore: implicit assignments#2664
maelle merged 1 commit into
mainfrom
implicit_assignment

Conversation

@maelle
Copy link
Copy Markdown
Contributor

@maelle maelle commented May 26, 2026

Part of #2652

@maelle maelle requested a review from schochastics May 26, 2026 10:03
Comment thread R/hrg.R
for (k in 1:nMerge) {
x <- merges[k, 1:2]
if (any(neg <- x >= 0)) {
neg <- (x >= 0)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

!!!!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@krlmlr @schochastics small hackathon topic?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Naming is hard, but Claude knows how. Is there more substance to discuss?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

well not having this named neg would be better for sure

Comment thread R/par.R
mode(arg),
list = temp <- arg,
character = return(.igraph.pars[arg]),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

maybe we can add an exception comment instead but I have to say I had trouble understanding the switch() call.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMHO switch only makes sense if it is more than 2 option OR if we expect that the list of options might grow in the future.

Independently, I also find this statement confusing

@maelle maelle merged commit 6b9d0fb into main Jun 4, 2026
6 checks passed
@maelle maelle deleted the implicit_assignment branch June 4, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants