[xquery-talk] let's comment out a line in XQuery

David Lee dlee at calldei.com
Fri Dec 21 06:40:55 PST 2012

Actually my compiler allows "void foo () { }" - why not?  A function 
that does nothing could be very useful sometimes.  "foo () { }" is bad 
because implicitly it is declared as returning int, yet does not return 

Which	 is why I used as an example
foo() {} 
which in K&R C means
int foo() {}

void foo() {}

in XQuery 

declare function foo() {}

is bad for precisely the same reason as functions *always* have a return type.
(no void).  But what should it be ?

David Lee
Lead Engineer
MarkLogic Corporation
dlee at marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622

More information about the talk mailing list