Liste des Groupes | Revenir à cl c |
On Thu, 11 Jul 2024 08:41:14 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
On 2024-07-11, Michael S <already5chosen@yahoo.com> wrote:On Wed, 10 Jul 2024 21:28:15 +0200
David Brown <david.brown@hesbynett.no> wrote:
On 10/07/2024 19:14, Michael S wrote:
>>
I'd like to see an example of the language that permits
ahead-of-time compilation and has functions as first-class
values.
Haskell is the first the comes to mind for me, but you could pick
any compiled functional programming language.
>
>
I fail to see a material difference between first class function
values in Haskell and C++ and first class function pointer values
in C:
>
Thank you.I think that is fair to say, yes. The real power comes when there are captures - not "doTwice", but "doNTimes".
Your example confirms my suspicion that the difference between first
and second class of functions doesn't become material until language
supports closures.
Les messages affichés proviennent d'usenet.