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


##########
daffodil-io/src/main/scala/org/apache/daffodil/io/processors/charset/X_DFDL_MIL_STD.scala:
##########
@@ -126,7 +126,7 @@ object BitsCharset5BitDFI1661DUI001 extends 
BitsCharsetNonByteSize {
   override lazy val name = "X-DFDL-5-BIT-DFI-1661-DUI-001"
   override lazy val bitWidthOfACodeUnit = 5
   override lazy val decodeString =
-    """\u00A0ABCDEFGHIJKLMNOPQRSTUVWXYZ\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"""
+    "\u00A0ABCDEFGHIJKLMNOPQRSTUVWXYZ\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"

Review Comment:
   So I can't triplequote and use "\u00A0" type escapes any more? What were 
they thinking? 
   
   The more I see this evolution of scala from 2.12 to 2.13 and beyond the less 
I like it. 
   
   We should implement our own string interpolator (e.g., `u"""...."""`) which 
implements exactly the Scala 2.12 triple-quoted string behavior. 
   
   (Note: chatGPT can write this for you. I'm thinking we're going to be 
building up a library of small adapter things like this and the ArrayBuffer1 
thing discussed in a different thread. There may be quite a lot of these at the 
current rate.)
   
   
   
   
   
   



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