Deutsch   English   Français   Italiano  
<v6obln$2djgq$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!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 <david.brown@hesbynett.no>
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: <v6obln$2djgq$1@dont-email.me>
References: <v66eci$2qeee$1@dont-email.me> <v6ard1$3ngh6$4@dont-email.me>
 <v6b0jv$3nnt6$1@dont-email.me> <87h6d2uox5.fsf@nosuchdomain.example.com>
 <v6d779$6rk5$2@dont-email.me> <v6e76u$c0i9$1@dont-email.me>
 <v6esqm$fian$2@dont-email.me> <v6f7vg$hgam$1@dont-email.me>
 <20240707164747.258@kylheku.com> <v6gl83$s72a$1@dont-email.me>
 <v6h8ao$ur1v$1@dont-email.me> <v6jhk3$1drd6$1@dont-email.me>
 <v6jiud$1dsjb$1@dont-email.me> <877cdur1z9.fsf@bsb.me.uk>
 <v6joi4$1epoj$1@dont-email.me> <871q42qy33.fsf@bsb.me.uk>
 <v6k6i0$1h4d3$1@dont-email.me> <87ed82p28y.fsf@bsb.me.uk>
 <v6m03l$1tf05$1@dont-email.me> <87r0c1nzjj.fsf@bsb.me.uk>
 <v6m716$1urj4$1@dont-email.me> <86ikxd8czu.fsf@linuxsc.com>
 <20240710201454.0000527e@yahoo.com> <v6mnch$21n94$1@dont-email.me>
 <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 <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.
> 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.)