Re: Enhancing Java String Literals Round 2

2019-01-06 Thread Remi Forax
- Mail original - > De: "Brian Goetz" > À: "Jim Laskey" > Cc: "amber-spec-experts" > Envoyé: Dimanche 6 Janvier 2019 18:43:19 > Objet: Re: Enhancing Java String Literals Round 2 > As Reinier pointed out on amber-dev, regex strings may routinely contain > escaped > meta-characters — +,

Re: Enhancing Java String Literals Round 2

2019-01-06 Thread James Laskey
The backslash prefix makes a lot of sense to me. Creating scenarios where I needed to toggle the raw-ness seemed forced. The only awkwardness I see is with leading/trailing quotes. """\"Cooked\ """ "Raw" """.strip() or Raw Cooked is fine wth escapes. Raw could have a rule l

Re: Enhancing Java String Literals Round 2

2019-01-06 Thread Brian Goetz
As Reinier pointed out on amber-dev, regex strings may routinely contain escaped meta-characters — +, *, brackets, etc. So the embedded \- and \+ story has an obvious conflict. While these are not the only possible characters for such “shift” operators, his point that this might be overkill i