[xquery-talk] why must one have something inside {} ?

Michael Kay mike at saxonica.com
Sun Dec 4 03:26:27 PST 2011


 >I don't recall any other languages with this problem.

Well, if I have a Java program that does

public String display(Object x) {
   return x.toString();
}

and I decide to comment it out like this

public String display(Object x) {
   // return x.toString();
}

then I will get a syntax error. Which seems a pretty close analogy to 
what you are doing.

Michael Kay
Saxonica



More information about the talk mailing list