[Issue 7176] Lambda => syntax for function and methods too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 3 19:10:41 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7176



--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-01-03 19:10:35 PST ---
> What kind of harm are you referring to?

It doesn't fit with the rest of the language. The syntax is very different from
other declarations. This reduces readability and increases how much the
programmer has to deal with.

The verboseness of lambda expressions is a definite problem for readability, so
the syntax is arguably worth it for lambda expressions. But to then also use it
in declarations which don't have the same readibility problem is incurring that
cost where it's not worth it IMHO.

Obviously, this is perfectly valid as an enhancement request, but I hope that
the request is denied. I think that the lambda syntax is too different from
typical C-based syntax to be reasonable in normal function declarations.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list