++Phobos
Paul Backus
snarwin at gmail.com
Sun Oct 20 02:11:51 UTC 2019
On Sunday, 20 October 2019 at 00:46:54 UTC, rikki cattermole
wrote:
> On 20/10/2019 2:45 AM, Paul Backus wrote:
>>
>> auto map(Args...)(Args arg)
>> out (result; isInputRange!(typeof(result)))
>> do {
>> ...
>> }
>
> I am unsure how to respond to this.
>
> Yes it works right now.
>
> But that amount of syntax and the semantics that go along with
> it, does not inspire "ease of use" or "easy to understand" in
> me.
I agree that it's a bit ugly. The main advantage is that it's
part of the function's signature, so it's guaranteed to show up
in the documentation.
More information about the Digitalmars-d
mailing list