-
Notifications
You must be signed in to change notification settings - Fork 90
Create the correct default values of Q# types #401
Conversation
swernli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reflection you are using here to get info on the underlying generic types seems reasonable to me. I don't know of any other ways to handle these kinds of types, and I've seen this approach recommended elsewhere (and used it myself for some .NET that wraps WMI). I'd definitely let others weigh in too, though I'm of the opinion this is the way C# is meant to handle generics.
bettinaheim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please double check the perf tests? Thanks!
This turns out to not be easy. Currently, the runtime performance tests aren't published in a format that's convenient to compare against results from main. |
Closes #359.