Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@cgranade
Copy link
Contributor

This PR adds a new event handler that loads display encoders from new packages as they are loaded, allowing packages to extend the display encoder mechanism to handle types not known at IQ# compile time.

@cgranade cgranade requested a review from rmshaffer June 24, 2020 04:01
rmshaffer
rmshaffer previously approved these changes Jun 24, 2020
Copy link
Contributor

@rmshaffer rmshaffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice, thanks for doing this! Just a couple of small comments.

.Select(asm => asm.Assembly.GetName())
.ToImmutableHashSet()
// Except assemblies known at compile-time as well.
.Add(typeof(StateVectorToHtmlResultEncoder).Assembly.GetName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When #177 is merged, the AzureClient assembly will also have some display encoders in it. Just FYI to whichever one of us merges second.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, thanks! Given what you said about conda breaking until #177, it probably makes sense for that one to go first and for me to catch up?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably yes, that makes sense. Hoping to be able to merge that first thing tomorrow morning.

rmshaffer
rmshaffer previously approved these changes Jun 24, 2020
rmshaffer
rmshaffer previously approved these changes Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants