D dropped in favour of C# for PSP emulator

Jonathan M Davis jmdavisProg at gmx.com
Fri May 11 14:52:54 PDT 2012


On Friday, May 11, 2012 22:40:08 Mehrdad wrote:
> On Friday, 11 May 2012 at 20:20:36 UTC, Jonathan M Davis wrote:
> > That's definitely an example of something that depends on your
> > background. std.algorithm.any does _exactly_ what it would do
> > in a functional language.
> 
> Well, I know some FP (Scheme/newLISP) but they don't have an
> "any" function. I don't know about F#, but my guess would be that
> it would do the same thing as C# would (for obvious reasons).
> 
> Are you thinking of a language in particular that has D's
> behavior? Or is this just a guess?

I know that haskell has such a function, and there were a number of complaints 
previously that we _didn't_ have an any function which does exactly what 
std.algorithm.any now does. It's a very functional approach to use predicates 
like that and I get the impression that it's common in other functional 
languages based on other's comments. The only one off the top of my head that I 
_know_ has such a function though is haskell.

- Jonathan M Davis


More information about the Digitalmars-d mailing list