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.

[FEATURE REQ] Page<T> and Response<T> should implement or inherit from a common ancestor

See original GitHub issue

Library or service name. What library or service is this request related to? Azure.Core

Is your feature request related to a problem? Please describe. Currently, Page<T> is a basic class that has no inheritance or implementation chain. However, it is in fact very similar to a Response<T> - it is a page of results that come down through a Response. Accordingly, both types have the GetRawResponse() method. Therefore, there should be some common ancestor between the two so that methods can accept an argument that matches either of these types. Currently, there is no clean way of achieving this behavior.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pakrymcommented, Jul 23, 2020

Don’t think the use case is common enough to motivate adding this feature.

0reactions
KrzysztofCwalinacommented, Mar 24, 2020

I’m proposing that Page<T> and Response<T> implement/inherit a common ancestor, and not that Page<T> inherit from Response<T>.

Ah, sorry, I missed that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the diamond case with its common ancestor used to ...
The problem with diamond inheritance is not so much shared behaviour but shared state. As you can see, Java in fact has always...
Read more >
How does C++ handle multiple inheritance with a shared ...
But the methods have to be implemented in each class that inherits the interface. There is however large class of interfaces, where it...
Read more >
Paget's disease of bone
Paget's disease of bone is a condition involving cellular remodeling and deformity of one or more bones. The affected bones show signs of...
Read more >
Calabria as a Genetic Isolate: A Model for the Study of ...
Thus, we used a population genomics approach to estimate the inheritance from a common ancestor of the APPA713T mutation in the Belgian and...
Read more >
Genetic Prion Disease - GeneReviews
Genetic prion disease is inherited in an autosomal dominant manner. Some individuals diagnosed with genetic prion disease may have a parent ...
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