Skip to content

Use the file name to parse the day value#76

Open
tguichaoua wants to merge 5 commits intofspoettel:mainfrom
tguichaoua:parse_day_from_file_name
Open

Use the file name to parse the day value#76
tguichaoua wants to merge 5 commits intofspoettel:mainfrom
tguichaoua:parse_day_from_file_name

Conversation

@tguichaoua
Copy link
Copy Markdown
Contributor

This PR introduces a new macro day_from_file_name which use the file name to create a Day value.
It is now possible to use advent_of_code::solution!() with no paremeter to use the file name.

Note: I only tested this on Windows and I'm not 100% sure of the robustnesss of this code.

@fspoettel fspoettel self-assigned this Nov 22, 2025
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