Should this work?
Regan Heath
regan at netmail.co.nz
Mon Jan 27 06:27:42 PST 2014
On Sat, 25 Jan 2014 10:15:28 -0000, Peter Alexander
<peter.alexander.au at gmail.com> wrote:
> Special cases are pure evil. There's nothing special about strings in
> this case.
This is a tangent to my suggestion.
I am arguing for domain specific language (aliases) where sensible, not
domain specific functions. If canFind can already handle all the
desirable string cases, perfect, but lets alias it in std.string as
"contains" so that people find what they expect to find first time and
don't get frustrated looking for the correct generic name for the
functionality they want.
There are likely other cases where we already have all the functionality
in a nice generic function, but people struggle to find it because it has
a suitably generic name.
I just want us to lower the bar for beginners coming from other languages
like Java and C#.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list