[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: here strings and symbols



At Tue, 12 Jul 2005 12:03:28 +0200, Sebastian Egner wrote:
> It struck me that the new lexical syntax for symbols is also just a 'here 
> string',
> albeit with the fixed key "|".

I don't understand. I think the new lexical syntax for quoted symbols
is that of a normal quoted string, but with the start and end character
as | instead of ". It's not at all like a here string, because escapes
in the quote symbol work the same as in a quoted string.

> Wouldn't it make more sense to have two forms of 'here string,' one
> within a line and one spanning several lines, and then having a
> modifier indicating string or symbol?

I'm having trouble imaging a use for "here symbols". Did you have
something in particular in mind?

Matthew