On 12/10/2012 1:27 PM, markspace wrote:
> On 12/10/2012 9:51 AM, Daniel Pitts wrote:
>
>> IntelliJ IDEA actually has a way to open just the expression in its own
>> edit window.
>
>
> That is indeed a nifty feature. However I believe in principle a
> programming language should be readable without something having to
> translate it for you. Java regex fails that test often enough where I
> think a non-escaped string constant would be a benefit overall.
FORTRAN solved this problem half a century ago:
5HHELLO
^^^^^
here's the string
13HHELLO, WORLD.
^^^^^^^^^^^^^
here's the string
3H1233H456
^^^ ^^^
here are the strings
8H1233H456
^^^^^^^^
here's the string
12H 1233H456
^^^^^^^^^^^^
here's the string
There was, of course, a certain amount of tedium (not to mention
opportunity for error) in manually counting each string, but if
Those Thrilling Days Of Yesteryear are what you crave ...
--
Eric Sosman
d