
22 Oct
2007
22 Oct
'07
4:50 p.m.
On Mon, 2007-10-22 at 17:12 +0100, Neil Mitchell wrote:
Hi
I can see problems with this. This comes up when typing windows file path's:
"C:\path to my\directory\boo"
If this now reports no errors, who wants to guess which come up as escape codes, and which don't. The way other languages like C# have dealt with this is by introducing a new type of quoted string:
@":\/"
In a @" string, there are no escape characters, except for "" which means ". There are various other quoting mechanisms available - but all have the problem of being yet another thing to learn.
I really like this in C# and wouldn't mind something similar in a future Haskell.