10000 Propagate RAView type variables to RAIView, RRAView by gselzer · Pull Request #379 · imglib/imglib2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Propagate RAView type variables to RAIView, RRAView 8000 #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gselzer
Copy link
Contributor
@gselzer gselzer commented Jun 9, 2025

This PR is built atop #378 - in many ways, these changes motivated the changes in that PR. Therefore, it should be reviewed first. It also warrants a major version bump.

Closes #377

@gselzer gselzer requested a review from tpietzsch June 9, 2025 22:42
@gselzer gselzer self-assigned this Jun 9, 2025
@gselzer gselzer added the bug label Jun 9, 2025
@gselzer gselzer changed the title Add Propagate RAView type variables to RAIView, RRAView Jun 9, 2025
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-friends-weekly-dev-update-thread/103718/99

@tpietzsch tpietzsch marked this pull request as draft June 30, 2025 08:38
@tpietzsch
Copy link
Member

This could work, I think.

Did you / could you please check that this does not break any of the discoverability and type-safety features discussed in https://forum.image.sc/t/recent-and-upcoming-imglib2-improvements/96083?u=tpietzsch?

Can you explain what wouldn't work here without #378?

@gselzer
Copy link
Contributor Author
gselzer commented Jun 30, 2025

Can you explain what wouldn't work here without #378?

Ooh, actually, this may work as is without #378. What wouldn't work is the following, which I hadn't yet added but would make a lot of sense if we did go with #378:

@@ -72,7 +70,7 @@ import net.imglib2.view.Views;
  * @author Michael Innerberger
  * @see Views
  */
-public interface RealRandomAccessibleView< T, V extends RealRandomAccessibleView<T, V> > extends RealRandomAccessible< T >
+public interface RealRandomAccessibleView< T, V extends RealRandomAccessibleView<T, V> > extends RandomAccessibleView<T, V>, RealRandomAccessible< T >
 {
        RealRandomAccessible< T > delegate();

Did you / could you please check that this does not break any of the discoverability and type-safety features discussed in https://forum.image.sc/t/recent-and-upcoming-imglib2-improvements/96083?u=tpietzsch?

Can you be more specific about where you're concerned? Happy to write tests to ensure proper behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RandomAccessibleIntervalView type variables hinder extension
3 participants
0