logo       

Re: assorted beginner questions: msg#00493

lang.scala

Subject: Re: assorted beginner questions

David Pollak <dpp@xxxxxxxxxx> writes:
> Unfortunately, there's no substitution of values like Ruby (hint, hint):
> """" -- note the 4th quote
> This is a multi
> line
> String
> created at #{new java.util.Date}
> """"

I like this, and also like:
"The date is: \{new java.util.Date}"

But neither of them is popular for some reason. At least you can
work around it with XML literals:

<text>The date is {new java.util.Date}</text>.text


-Lex




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise