mbeckerle commented on code in PR #908:
URL: https://github.com/apache/daffodil/pull/908#discussion_r1068387651


##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/api/DFDLParserUnparser.scala:
##########
@@ -226,84 +221,22 @@ object DFDL {
   }
 
   trait DaffodilUnparseContentHandler
-    extends  ProducerCoroutine
-    with org.xml.sax.ContentHandler {
+    extends org.xml.sax.ContentHandler {
     def getUnparseResult: UnparseResult
-    def enableInputterResolutionOfRelativeInfosetBlobURIs(): Unit
+    def enableResolutionOfRelativeInfosetBlobURIs(): Unit
   }

Review Comment:
   "Impl" suffix helps here. 
   I like to use "Mixin" suffix also when a trait provides implementation 
methods. 
   In fact both makes sense sometimes XYZImplMixin is useful when there is an 
interface XYZ. 
   
   As for qualified names,... IDEs make it hard to maintain a discipline of 
say, not importing a particular package because you *want* to use qualified 
names.
   
   The IDEs I've used all prompt you for possible matching names, showing you 
the choices for different qualifiers, and then insert the name in the code and 
the import statement at the top for you. 
   
   This is a big help when writing code and I would *not* want to turn it off 
for the sake of some discretionary code style issue like "I think I'd prefer to 
use a qualified name in this spot."  If you really insist on this you can put 
in the qualified name and delete the import and the IDE won't undo your change, 
but you have to really want it that way to go through those steps. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to