Function types syntax

Zdenek Tronicek tronicek at fit.cvut.cz
Wed Jan 27 00:18:00 PST 2010


John Rose napsal(a):
> stringLength = #(String s) int length: {
>   if (s == null) break length = -1;
>   length = s.length();
>   };

Where will the throws clause be placed?

#(String)->int (throws IOException, InterruptedException) stringLength;

stringLength = #(String s) int (throws IOException,
InterruptedException) length: {
  if (s == null) break length = -1;
  length = s.length();
  };

Z.
-- 
Zdenek Tronicek
FIT CTU in Prague



More information about the lambda-dev mailing list