https://issues.dlang.org/show_bug.cgi?id=12595

JR <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from JR <[email protected]> ---
It's semantically ambiguous as duplicate can be both a noun and a verb.

I tend to think of .{i,}dup the noun way; something.duplicateOf; where whether
the .duplicateOf property "does" something or not remains up to implementation.

In abstract: the clerk has a stack of foos and you're asking for a .dup copy,
so he fetches one from the pile and hands it to you.

The opposite is naturally .duplicateThisForMe, from which perspective they
shouldn't be property functions, no.

--

Reply via email to