logo       

Re: assorted beginner questions: msg#00516

lang.scala

Subject: Re: assorted beginner questions


On Jan 28, 2007, at 7:35 AM, David Pollak wrote:

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}
""""

But Burak's XML library supports this: e.g.,

val xxx=<p>This is a multi
line
String
create at {new java.util.Data}</p>;

Kind of cool once you start using it.

are there any form of nested comments in scala?

No. Comments in Scala are like comments in Java.

As Martin pointed out this is incorrect. I made this mistake to, the fact that multi-line comments nest is buried in the spec.




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

News | FAQ | advertise