You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...)
Activity
ctrueden commentedon Sep 26, 2023
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 thereforeNilcannot 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
Classfirst, and only afterward move on toNil, with the caveat that it's "Java-centric" code-wise. (We can test whether generics work in Groovy...)gselzer commentedon Oct 18, 2023
@hinerm can we consider this closed with the merge of scijava/incubator#14? I wrote this main class...
Merge pull request #133 from scijava/scijava-ops-docs/add-examples