Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional options pattern for Engine init. #62

Merged
merged 3 commits into from
Nov 26, 2023
Merged

Conversation

perbu
Copy link
Collaborator

@perbu perbu commented Nov 25, 2023

Implemented.

pidseparator is currently a global variable so it looks a bit weird.

also, not sure about naming.

@anthdm
Copy link
Owner

anthdm commented Nov 25, 2023

@perbu pathSeparator? What do you propose?

@perbu
Copy link
Collaborator Author

perbu commented Nov 25, 2023

@anthdm I suggest we leave it is as it is. It's a global variable, but it doesn't cause any issues. It looks a bit weird to use a functional option to set it, but that is no biggie.
The alternative would be to export it and let users set it directly.

@anthdm
Copy link
Owner

anthdm commented Nov 25, 2023

@perbu This looks good. Ready for merge?

@perbu
Copy link
Collaborator Author

perbu commented Nov 26, 2023

Yes. Go ahead.

@anthdm anthdm merged commit 0a3f7f4 into anthdm:master Nov 26, 2023
@anthdm
Copy link
Owner

anthdm commented Nov 26, 2023

@perbu You are HIM. Thank you again!

@perbu perbu deleted the opts branch November 26, 2023 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