Skip to content

Write Tutorial using Nils in Ops #133

Closed

Description

@hinerm

In the Calling Ops document I'd like to see an example explaining why and how to use Nil types in Op calls.

Activity

  1. added this to the 1.0.0 milestone on Sep 26, 2023
  2. ctrueden commented on Sep 26, 2023

    @ctrueden
    Member

    Issues such as #134 illustrate how sometimes, the matcher fails when given only objects; therefore, teaching people how to matching using types alone is a nice thing to do. However, matching with Nils is scary for beginners because it involves generics—and furthermore, usage of Java generics from certain scripting languages cannot be done, and therefore Nil cannot be used as intended in languages like Jython.

    That said, we do still want to showcase "matching with types alone" in an Advanced section of the tutorial. This should show matching with Class first, and only afterward move on to Nil, with the caveat that it's "Java-centric" code-wise. (We can test whether generics work in Groovy...)

  3. gselzer commented on Oct 18, 2023

    @gselzer
    Member

    @hinerm can we consider this closed with the merge of scijava/incubator#14? I wrote this main class...

  4. added a commit that references this issue on May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions