Added support for compiling more deeply nested namespaces#132
Closed
hadrianoliver wants to merge 1 commit intomessageformat:masterfrom
Closed
Added support for compiling more deeply nested namespaces#132hadrianoliver wants to merge 1 commit intomessageformat:masterfrom
hadrianoliver wants to merge 1 commit intomessageformat:masterfrom
Conversation
Member
|
This looks pretty good. If you could add a test case for the new functionality, I'll accept the PR. |
Contributor
Author
|
On reflection I don't believe this change would be good, even though it works as I had intended. I'd rather change the system I'm working on to behave in a more 'usual' manner and make the behaviour of MessageFormat::compile() consistent with the output from the build-time compilation. When I get this working in a way I'm happy with I'll make another pull request with tests. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I'm working on an system that uses more levels of namespaces than are currently supported by the compile function. This change adds support for any arbitrary depth of namespace nesting by using a recursive function to handle them instead of the current nested for loops.
Example:
Results in the error: