Skip to content

Move all ascii art to separate files #5

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

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

richardhozak
Copy link
Contributor

It is similar to other language matching functions.
This keeps the ascii art more organized, and its easier to add more languages without bloating main.rs

It is similar to other language matching functions.
This keeps the ascii art more organized, and its easier to add more languages without bloating main.rs
@o2sh
Copy link
Owner

o2sh commented Oct 3, 2018

Are you sure the added IO overhead resulting from reading a file from disk is worth it ?

@richardhozak
Copy link
Contributor Author

richardhozak commented Oct 3, 2018

This does not read from file when running, only at build time. What I think would be even better, is to have some configuration for every file, where you would specify what color to use and what ascii art to use.
Maybe it is not worth it as it is now, so feel free to close this.

@o2sh
Copy link
Owner

o2sh commented Oct 3, 2018

Ok, I will merge it.
Don't hesitate to follow up on your idea, it sounds promising !

@o2sh o2sh merged commit 440e4a9 into o2sh:master Oct 3, 2018
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.

3 participants