Skip to content

Conversation

toofishes
Copy link

Rather than creating a new immutable string per additional element, this reuses and grows an internal buffer.

Rather than creating a new immutable string per additional element, this reuses
and grows an internal buffer.
}

func (b BasicBlock) GetRichTextString() string {
return "No rich text of a basic block."
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this text was removed?

Copy link
Author

Choose a reason for hiding this comment

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

This was to avoid surprises and misleading messages, mainly:

  • I don't think one should get a string that is not a part of a wiki page when decoding the various blocks.
  • The text as-is really is trying to say "you didn't override this method in the struct that has a anonymous BasicBlock struct inside of it", but is misleading.

I should have commented more on this when I opened the PR - sorry about that.

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.

2 participants