question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for polymorphism

See original GitHub issue

I’m adding support for polymorpishm via the use of an interface together with a SchemaKnownType attribute.

This will result in a union with multiple records.

Just checking on how you are feeling about this.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
promontiscommented, Sep 18, 2019

@dstelljes good questions!

After giving it some more thought, I don’t think I’m going the polymorphism route. It would work for in C#, but it would be really hard to get this going in say KSQL.

I’m now going to split up every concrete class in its own event. Much simpler and more supported. Feel free to continue on my fork if you want.

0reactions
dstelljescommented, Oct 28, 2019

Closing for #43, which is how I think we’re going to want to implement this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OOP Concepts for Beginners: What is Polymorphism
Java supports two kinds of polymorphism. You can overload a method with different sets of parameters. This is called static polymorphism ...
Read more >
Does Python support polymorphism
Yes, Python supports polymorphism. The word polymorphism means having many forms. Polymorphism is an important feature of class definition ...
Read more >
How To Apply Polymorphism to Classes in Python 3
Polymorphism is the ability to leverage the same interface for different underlying forms such as data types or classes.
Read more >
Polymorphism in Python
Polymorphism in python is widely applied in object-oriented python programming for a common function name that can be used for different types.
Read more >
Polymorphism in Java
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found