• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

“Sybex CSG 11” Chapter 12 Page 534.

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The topic "Restrictions on Using var in the Parameter List" proposes to evaluate if some lambda expressions does compile or not.

At line 4, the expression "var w -> 99" does not compile. But the book says that it is "because parentheses, (), are required when using the parameter name.".

I disagree with the ending, as parameter names are always mandatory. A better explanation would be  "because parentheses, (), are required when using the parameter **type**.".

Thanks for your attention!
Screaming fools! It's nothing more than a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic