error diagnosis: range.algorithm(myFunc)
Luís Marques via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 16 17:04:15 PST 2015
Hi,
I often type `range.algorithm(myFunc)` instead of the correct
`range.algorithm!(myFunc)`. Would it be possible to improve the
error message for this? Something like the compiler spell
checker, and ask "did you mean `range.algorithm!(myFunc)`?".
That has happened sometimes with a non-UFCS call, but that's
rarer, so just handling the UFCS case would bring most of the
benefit, IMO.
More information about the Digitalmars-d
mailing list