Tsoding - How Not to Market Your Language Features

Patrick Schluter Patrick.Schluter at bbox.fr
Thu Apr 3 09:09:52 UTC 2025


On Wednesday, 2 April 2025 at 17:26:59 UTC, Derek Fawcus wrote:
> On Wednesday, 2 April 2025 at 17:01:56 UTC, Derek Fawcus wrote:
>> On Wednesday, 2 April 2025 at 15:16:43 UTC, Timon Gehr wrote:
>>> On 3/31/25 13:23, Patrick Schluter wrote:
>>>> [...]
>>>
>>> Can you show the code that you mean or give a more accurate 
>>> time stamp? I only see the _delegate's_ parameter `i` at 
>>> 1:19:41, which does not lead to shadowing, as the only actual 
>>> parameter in scope within `opApply` is `dg`.
>>
>> I can't point to the timestamp, but FWIW I do recall seeing 
>> something similarly dubious while he was coding.
>
> OK - checking again, I can see the "non shadow" instance you 
> mention.
>
> I can see how I would have misinterpreted what he was doing 
> while he was chopping and changing in his code. Maybe it was 
> the same for Patrick?

Indeed, it was exactly that. I really don't like using i,j or k 
in a function parameter list, in my world they are reserved for 
loop indices. This has the consequence that code that violate 
that rule always appear suspicious to me.

>
> (A version of the code can also be seen at 1:15:54)



More information about the Digitalmars-d mailing list