[Issue 1012] cannot instantiate template with no or default arguments without !()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 16 10:58:48 PST 2012


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #8 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-11-16 10:58:46 PST ---
> I have severe misgivings about this.

I concur. It seems like it just begging for trouble when providing minimal
gain. Not to mention that it would harm code readability in many cases, which
will therefore harm code maintainability.

issue# 6082 might be reasonable to implement (I don't know), in which case the
example here would compile, but that would be restricted specifically to
constructors. Making it so that templates in general can be instantiated
without !() if they don't need any arguments is a bad idea IHMO. And I think
that this post on the newsgroup is a good example of why this is a bad idea:

http://forum.dlang.org/post/vmipipnhyiilketbygbw@forum.dlang.org

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