[Issue 10491] Type inference for function arguments with default value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 2 14:00:25 PDT 2013


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



--- Comment #7 from bearophile_hugs at eml.cc 2013-07-02 14:00:23 PDT ---
(In reply to comment #6)

> Can only three people actually take decisions like that?

I'd like Walter and/or Andrei to give a comment to this (and to your patch).

I have asked here, in the main D newsgroup, and your patch was exposed in
GitHub for several days.


> 1. True, but these little syntactic improvements make writing D more fun as a
> whole.

Default arguments are not so common...



> 3. The cost of inferring things. If the quality of the error messages are
> appropriate, it is totally worth it.

The point 3 by Hara is probably the most important. If he says this enhancement
may cause more typing problems then we should listen to him. At minimum your
patch should contain more tests. (But adding tests to a patch is receiving a
cold interest risks being a further waste of time.)

Thank you for your patch and your comments.

-- 
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