Liste des Groupes | Revenir à cl c |
On 12.04.2025 13:00, bart wrote:
I can write it like this using anonymous functions:>In Algol 68 I can just write (without 'REF'), for example,
[]ref func(int) int := (F, G, H) # [var name missing]
>
It is initialised to functions F, G, H which are defined elsewhere.
[10] PROC (INT) INT apfii;
PROC one_less = (INT i) INT : i-1;
PROC one_more = (INT i) INT : i+1;
apfii[2:3] := ( one_less, one_more );
We don't need "pointers" (or references) which don't contribute to the'refs' occur in declarations. The equivalent 'deref' operation, '^' in my syntax, can be omitted in code when it is between terms. (So where C needs (*P)->m, I can just do P.m instead of P^^.m)
clearness of the semantics for this purpose - 'REF's are used for other
things -, for the case here they'd rather introduce low-level mechanics
unnecessarily in the application. - Just saying. (I'm not intending to
complain in that respect about "C" or about "your language". I'm merely
reporting some simple facts about it.) - So the 'ref' necessity in your
language may look clear to you but for me it's just obscuring ballast.
I need 'ref' because I have a strict type system.But not in mine, which was created as a leaner, simpler and moreWe obviously disagree about the "transparence". I prefer languages that
transparent systems language.
don't make me have to use unnecessarily low-level mechanics. There's no
necessity of "ref" here; that's a problem of (or a "solution" or maybe
"workaround" in, or a design decision of) your language.
- But as manyNeither do I. But I can at least appreciate (and appropriate) clever and useful features that they might have. Even more so if someone has managed to successfully use their product, instead of C, for a sustained period.
others here, I anyway don't care much about other's personal languages.
Les messages affichés proviennent d'usenet.