Spell checking errors can be hilarious

Andrew Edwards edwards.ac at gmail.com
Tue Oct 13 05:31:42 UTC 2020


On Tuesday, 13 October 2020 at 05:22:52 UTC, Andrew Edwards wrote:
> On Monday, 12 October 2020 at 17:33:04 UTC, Q. Schroll wrote:
>> On Monday, 12 October 2020 at 17:04:01 UTC, Ali Çehreli wrote:
>>> The unfortunate thing in the video was 'to' is not searchable 
>>> on the internet
>>
>> It's not even searchable on the DLang site (e.g. using 
>> site:dlang.org on DuckDuckGo); we should avoid these names. 
>> Renaming `to` to `convertTo` would solve that using
>>
>>     import std.conv : to = convertTo;
>>
>> when using it. It costs a few keystrokes tho.
>
> I don't even understand the issue here. If I am having an issue 
> with something written to!string, why on earth would I search 
> for to? I would simply search for to!string because that's 
> where my problem lies. Which, by the way, provides the solution 
> to my problem in the first hit of the returned results.

There will never be a place in code where to is used without 
being instantiated.

to!
to!(
to!string
to!int
to!double
to!float
to!char
to!long

In every std.conv is the first result returned.


More information about the Digitalmars-d mailing list