From chris_c on conwaylife.com #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LifeAPI looks great. I hacked around with it a bit. What do you think of these patches?
Patch 1. IMO these headers do not really belong inside LifeAPI.h. Especially comio.h seems not available on Linux.
Patch 2. I hate dealing with strings in C/C++, IMO they should only be used for input/output.
Patch 3. gcc spews a load of warnings unless char * is declared as const
Patch 4. Direct implementations of Contains and ContainsInverse. I don't know if you will like them.
Patch 5. I think these renamings make it more obvious what the function does without needing to read the documenatation. Especially ContainsInverse I think is a tricky name that I would prefer to get rid of. This is probably the most subjective patch I am submitting.
Patch 6. Add function GetBoundary. Completely untested but could be useful to easily defined the "unwanted" set in a LifeTarget.
(Oh I notice you made some changes in the last couple of hours. Hopefully this still applies cleanly?! Maybe not)