gives me a compiler error "Either escape a dollar sign or bracket the value expression"
prints `$()` fine. No errors
Why is there a difference? The only documented difference is that slashy strings make working with backslashes easier. I understand that a variable name cannot start with a bracket so it should be possible to make that special case. Is that the case for the slashy strings?
Just came across this when doing something with regex.