On Sat, 28 May 2022, Hairy Pixels via fpc-pascal wrote:
I’ve had some time to play with this now and my first piece of feedback is that
given my experience with other languages, the most common usage of closures is
by passing them as arguments to functions.
Compared to the other languages I
> On May 28, 2022, at 2:06 PM, Michael Van Canneyt via fpc-pascal
> wrote:
>
> Ah...
>
> The desire to make a programming language terse and unreadable as a
> consequence.
> If you want that, use C#, Javascript or one of the ubiquitous languages for
> bracket fetishists.
> Scala & Rust top
On Sat, 28 May 2022, Hairy Pixels via fpc-pascal wrote:
On May 28, 2022, at 2:06 PM, Michael Van Canneyt via fpc-pascal
wrote:
Ah...
The desire to make a programming language terse and unreadable as a consequence.
If you want that, use C#, Javascript or one of the ubiquitous languages f
Hallo,
I want to show how my program was compiled.
Now I have string like "FPC3.2.2 i386-Linux R+C+" from
compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE
%FPCTargetCPU%}+'-'+{$INCLUDE %FPCTargetOS%}+ ' ' + {$IfOpt
R+}+'R+'{$endif} {$IfOpt S+}+'S+'{$endif} {$IfOpt O+}+'O+'{$e
Hi,
Sort((left, right) begin
if left < right then
result := -1
else if left > right then
result := 1
else
result := 0;
end);
One could introduc
On 2022-05-28 13:44, Benito van der Zander via fpc-pascal wrote:
Hi,
I want to show how my program was compiled.
Now I have string like "FPC3.2.2 i386-Linux R+C+" from
compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE
%FPCTargetCPU%}+'-'+{$INCLUDE %FPCTargetOS%}+ ' ' + {$IfOpt
> On May 28, 2022, at 6:39 PM, Michael Van Canneyt via fpc-pascal
> wrote:
>
> And I'm sure it finds these very understandable (live examples):
>
> [s: string]: ((s: string, cb: (done: any) => void) => void) & ((cb: (done:
> any) => void) => void) & {only: any, skip: any};
> load: (url: stri
> On May 28, 2022, at 7:04 PM, Benito van der Zander via fpc-pascal
> wrote:
>
> The "result" variable is also ugly. You could make "if" an expression:
>
> Sort( @(left, right) begin
> result :=
> if left < right then -1
> else
> On May 27, 2022, at 6:31 PM, Marco van de Voort via fpc-pascal
> wrote:
>
> Ditto! https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39774
>
> This ticket also contains an experimental patch for anonymous method queue
> and synchronize. (required to reproduce)
Yeah code tools is
This is horrendous code, especially the last example. Looks like PHP or
JavaScript, which I hate because their code is hard to read. I'm using pascal
because I like its clean and easy-to-read syntax.
"-1" is a statement that should give a compiler error. "Result" and "Exit(x)"
are established c
I’ve been testing out all the different function pointer types in FPC to test
their compatibility with each other and I noticed that “is nested” can accept a
global function declaration but “of object” can not. What is the reason for
this exactly? I wouldn’t expect nested function types to accep
On Sun, 29 May 2022, Hairy Pixels via fpc-pascal wrote:
I’ve been testing out all the different function pointer types in FPC to
test their compatibility with each other and I noticed that “is nested”
can accept a global function declaration but “of object” can not. What is
the reason for thi
12 matches
Mail list logo