mbeckerle commented on PR #801:
URL: https://github.com/apache/daffodil/pull/801#issuecomment-1150348922

   Changing from "==" to "=#=" just uses one of the typed equality things in 
that scala file, which makes the VSCode scala stuff not create an IDE "problem 
item" associated with an unused import. There must be something else in the 
imported equality stuff being used that VSCode cannot detect (probably an 
implicit) because otherwise our conventional sbt build would also complain 
about this unused import. Our sbt build doesn't complain, but VSCode does, so I 
added a use that can't be avoided/missed. 
   
   The typed equality "=#=" operator is just "==" under the hood, but the Scala 
type stuff surrounding it prevents you from using it unless the types are 
convertible.  So you get a compile time warning about doing it wrong if the 
types are not convertible, rather than untyped == which just gives you false. 


-- 
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