Skip to content

tools: vreduce: breadth first search#24369

Merged
spytheman merged 1 commit into
vlang:masterfrom
Eliyaan:reduce-bfs
Apr 30, 2025
Merged

tools: vreduce: breadth first search#24369
spytheman merged 1 commit into
vlang:masterfrom
Eliyaan:reduce-bfs

Conversation

@Eliyaan

@Eliyaan Eliyaan commented Apr 30, 2025

Copy link
Copy Markdown
Member
  • uses breadth first search instead of depth first search

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22745

Comment thread cmd/tools/vreduce.v
os.mkdir(tmp_folder) or { panic(err) }
}
os.write_file(path, file) or { panic(err) }
os.write_file(dir, file_content) or { panic(err) }

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.

Renaming file to file_content is good, but path to dir, given the usage is not, since write_file expects a path or file name, not a dir in its first argument.

@spytheman spytheman merged commit 3ca3e5c into vlang:master Apr 30, 2025
@Eliyaan Eliyaan deleted the reduce-bfs branch May 29, 2025 08:56
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