Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Brown
Newsgroups: comp.lang.c
Subject: =?UTF-8?Q?Re=3A_technology_discussion_=E2=86=92_does_the_world_need?=
=?UTF-8?B?IGEgIm5ldyIgQyA/?=
Date: Thu, 11 Jul 2024 12:20:39 +0200
Organization: A noiseless patient Spider
Lines: 38
Message-ID:
References:
<87h6d2uox5.fsf@nosuchdomain.example.com>
<20240707164747.258@kylheku.com>
<877cdur1z9.fsf@bsb.me.uk>
<871q42qy33.fsf@bsb.me.uk>
<87ed82p28y.fsf@bsb.me.uk>
<87r0c1nzjj.fsf@bsb.me.uk>
<86ikxd8czu.fsf@linuxsc.com>
<20240710201454.0000527e@yahoo.com>
<20240711111357.00007712@yahoo.com> <20240711012852.856@kylheku.com>
<20240711121502.0000614e@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 Jul 2024 12:20:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ae48152f062f08333130ccb39a825b01";
logging-data="2543130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dfYTBoRRVx4PZ1FQ/8yeolfGwDAu7F3Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:66coLXZiBT9MgKsSPO/v2rYh304=
Content-Language: en-GB
In-Reply-To: <20240711121502.0000614e@yahoo.com>
Bytes: 3250
On 11/07/2024 11:15, Michael S wrote:
> On Thu, 11 Jul 2024 08:41:14 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> On 2024-07-11, Michael S wrote:
>>> On Wed, 10 Jul 2024 21:28:15 +0200
>>> David Brown 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.
> Your example confirms my suspicion that the difference between first
> and second class of functions doesn't become material until language
> supports closures.
>
I think that is fair to say, yes. The real power comes when there are
captures - not "doTwice", but "doNTimes".
Again, this can be done in compiled Haskell, and surely in any compiled
functional programming language or compiled language that supports
functional programming paradigms. (OCaml is another popular choice.)