Re: Function minimization and random numbers



Jon Harrop <usenet@xxxxxxxxxxxxxx> wrote:
Marc Gravell wrote:
Cheers for that; of course, it is double edged if "standard" .NET
consumers can't use the F# libs... but there we are ;-p

You can write libraries in F# that other languages can use but, of course,
you must avoid features (e.g. closures) that C# and VB lack.

In what way does C# lack closures? It supports them in the form of
delegates with captured variables etc. It may not be the same form that
F# uses, but that's not the same thing.

Hopefully Microsoft will hoist the generally-useful functionality currently
in F#'s stdlib out and put it into core .NET instead. This would give the
best of both worlds.

Indeed.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.



Relevant Pages

  • Re: references about the beauty of functional programming ?
    ... Jon Harrop wrote: ... such languages are therefore easier to maintain. ... For non-trivial tasks, OCaml is usually much faster than C++. ...
    (comp.lang.functional)
  • Re: Parallel Common-Lisp with at least 64 processors?
    ... Jon Harrop wrote: ... some languages process sleep cycles faster than others, ... My original point was that Lisp makes high-level programming slow. ... modern functional languages are so much more effective than ...
    (comp.lang.lisp)
  • Re: Fortran and simple tree recursion
    ... > Jon Harrop wrote: ... tail calls are simply determined by whether or not the result ... In functional languages, recursion is so ...
    (comp.lang.fortran)
  • Re: Troll-o-Matic
    ... I think Jon Harrop gets more flak that he deserves. ... criticism that was levied against his benchmarks was justified, ... in all these languages for comparison would be practical in most situations). ... It is easy to lie with statistics, but it's a lot easier to lie without them. ...
    (comp.lang.lisp)
  • Re: The power difference between a macro and a function
    ... Pascal Costanza wrote: ... > Jon Harrop wrote: ... Many people consider using other languages, ... to be a "reasonable alternative" to retrofitting an ad-hoc syntax ...
    (comp.lang.lisp)