Re: [fpc-pascal] Syntax changes suggestions

2018-07-28 Thread R0b0t1
Well, I am also of the opinion that threadvar is kind of a kludge too. I think part of the aesthetic of Pascal is that it reads fairly close to English. Creating a lot of new compound words is a bit jarring. As I just now figured out how to articulate the above, I have what I think is a more

Re: [fpc-pascal] Syntax changes suggestions

2018-07-27 Thread Ryan Joseph
> On Jul 25, 2018, at 8:05 AM, R0b0t1 wrote: > > This looks ugly. It also introduces modifiers to variable > declarations. Some features should not be part of the language, they > should be built on top of it. Yeah, introducing modifiers to variables is not so great. You could avoid

Re: [fpc-pascal] Syntax changes suggestions

2018-07-27 Thread Ben Grasset
How is auto more "ugly" than literally any other modifier in the entire language? They're all just english words, of varying length. Also building features on top of a language will always result in worse performance than having them be a part of it. On Wed, Jul 25, 2018 at 10:05 AM, R0b0t1

Re: [fpc-pascal] Syntax changes suggestions

2018-07-27 Thread Sven Barth via fpc-pascal
R0b0t1 schrieb am Do., 26. Juli 2018, 09:53: > On Mon, Jul 23, 2018 at 11:11 AM, Ryan Joseph > wrote: > > > > > >> On Jul 22, 2018, at 4:54 AM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > >> > >> And that's why there are people who *do* care about it. Of course you >

Re: [fpc-pascal] Syntax changes suggestions

2018-07-26 Thread R0b0t1
On Mon, Jul 23, 2018 at 11:11 AM, Ryan Joseph wrote: > > >> On Jul 22, 2018, at 4:54 AM, Sven Barth via fpc-pascal >> wrote: >> >> And that's why there are people who *do* care about it. Of course you can >> put everything and the kitchen think into a language. But if it doesn't fit >> the

Re: [fpc-pascal] Syntax changes suggestions

2018-07-25 Thread Giuliano Colla
Il 23/07/2018 18:11, Ryan Joseph ha scritto: The spirit of the language is really hard to define in my opinion. To the contrary, in an Open Source project, it is the easiest thing to define. It is what the core developers deem to be the spirit of the language. That's all. One should never

Re: [fpc-pascal] Syntax changes suggestions

2018-07-24 Thread Ryan Joseph
> On Jul 22, 2018, at 4:54 AM, Sven Barth via fpc-pascal > wrote: > > And that's why there are people who *do* care about it. Of course you can put > everything and the kitchen think into a language. But if it doesn't fit the > language than you'll simply end up with a melting pot that

Re: [fpc-pascal] Syntax changes suggestions

2018-07-23 Thread Santiago A.
El 21/07/18 a las 22:43, Ben Grasset escribió: Shouldn't the attribute tags just be put wherever it's easiest for the compiler to deal with them? No, of course the shouldn't. They should be put put where it is easier for programmer, or more readable, or coherence, or common sense, or other

Re: [fpc-pascal] Syntax changes suggestions

2018-07-23 Thread Sven Barth via fpc-pascal
Am 21.07.2018 um 22:43 schrieb Ben Grasset: On Fri, Jul 20, 2018 at 1:20 AM, Sven Barth via fpc-pascal > wrote: Because a feature might change the language in a way that's not in the spirit of the language. Look at how Delphi implemented

Re: [fpc-pascal] Syntax changes suggestions

2018-07-23 Thread Michael Van Canneyt
On Sat, 21 Jul 2018, Ben Grasset wrote: On Fri, Jul 20, 2018 at 1:20 AM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: Because a feature might change the language in a way that's not in the spirit of the language. Look at how Delphi implemented attributes: they're

Re: [fpc-pascal] Syntax changes suggestions

2018-07-23 Thread James Lee
On 7/21/2018 1:43 PM, Ben Grasset wrote: Shouldn't the attribute tags just be put wherever it's easiest for the compiler to deal with them? That would be bending the language to fit the implementation, when it should be the other way around. I think the vast majority of people care

Re: [fpc-pascal] Syntax changes suggestions

2018-07-22 Thread Ben Grasset
Isn't Delphi compatibility a major ongoing goal of both FPC and Lazarus, though? On Fri, Jul 20, 2018 at 10:01 AM, R0b0t1 wrote: > On Fri, Jul 20, 2018 at 12:20 AM, Sven Barth via fpc-pascal > wrote: > > Am 20.07.2018 um 00:53 schrieb Ben Grasset: > >> > >> If a feature works as intended and

Re: [fpc-pascal] Syntax changes suggestions

2018-07-22 Thread Ben Grasset
On Fri, Jul 20, 2018 at 1:20 AM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > Because a feature might change the language in a way that's not in the > spirit of the language. Look at how Delphi implemented attributes: they're > declared in front of the types, fields,

Re: [fpc-pascal] Syntax changes suggestions

2018-07-21 Thread Michael Van Canneyt
On Fri, 20 Jul 2018, Sven Barth via fpc-pascal wrote: Am 20.07.2018 um 00:53 schrieb Ben Grasset: If a feature works as intended and is useful (which is all that matters), how is it "blind copying"? Because a feature might change the language in a way that's not in the spirit of the

Re: [fpc-pascal] Syntax changes suggestions

2018-07-21 Thread Marco van de Voort
In our previous episode, Ben Grasset said: > If a feature works as intended and is useful (which is all that matters), The first is not sure, the second is extremely subjective. The point is that border conditions can vary between source and destination language. How features parse, how they

Re: [fpc-pascal] Syntax changes suggestions

2018-07-21 Thread R0b0t1
On Fri, Jul 20, 2018 at 12:20 AM, Sven Barth via fpc-pascal wrote: > Am 20.07.2018 um 00:53 schrieb Ben Grasset: >> >> If a feature works as intended and is useful (which is all that matters), >> how is it "blind copying"? > > Because a feature might change the language in a way that's not in the

Re: [fpc-pascal] Syntax changes suggestions

2018-07-20 Thread Sven Barth via fpc-pascal
Am 20.07.2018 um 00:53 schrieb Ben Grasset: If a feature works as intended and is useful (which is all that matters), how is it "blind copying"? Because a feature might change the language in a way that's not in the spirit of the language. Look at how Delphi implemented attributes: they're

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Ben Grasset
If a feature works as intended and is useful (which is all that matters), how is it "blind copying"? On Thu, Jul 19, 2018 at 7:25 AM, Marco van de Voort wrote: > > In our previous episode, Ryan Joseph said: > > > > That?s pretty disheartening honestly. So there was a useful feature users > >

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Ben Grasset
I'm quite certain a lot of people would disagree with you on that. But there you have the reason why the "having to read code you don't like looking at" argument makes no sense. It's completely subjective. On Thu, Jul 19, 2018 at 12:37 AM, Martin Schreiber wrote: > On Wednesday 18 July 2018

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Bo Berglund
On Thu, 19 Jul 2018 03:42:26 +0200, "Tomas Hajny" wrote: >Hello everybody, > >The discussion in this thread seems to be endless and arguments are >repeating over and over. Moreover, some of the words and statements having >appeared in certain posts are better avoided in polite communication.

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > That?s pretty disheartening honestly. So there was a useful feature users > could be leveraging but it was turned down because it didn?t fit into some > paradigm or something like that. Sorry to hear that. No, because blind copying from one

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Mark Morgan Lloyd
On 18/07/18 20:45, Ryan Joseph wrote: On Jul 18, 2018, at 1:46 PM, R0b0t1 wrote:> > You can make the function yourself. That you may have problems with> typing are indicative that the language could use a more expressive> type system, not that it was a good idea to create an intrinsic that>

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Martin Schreiber
On Wednesday 18 July 2018 23:30:19 Ben Grasset wrote: > > For example, does *anyone *actually think the strange "lowercase > everything" capitalization style the compiler uses is "readable" nowadays? Yes. Martin ___ fpc-pascal maillist -

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Reimar Grabowski
On Wed, 18 Jul 2018 21:26:05 -0400 Ben Grasset wrote: > This is a massive oversimplification. Many *modern* game engines do not > even have the kind of loop you're thinking of. Please tell me where I can read up about those engines without cyclic executive? Are those engines interrupt driven or

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Tomas Hajny
Hello everybody, The discussion in this thread seems to be endless and arguments are repeating over and over. Moreover, some of the words and statements having appeared in certain posts are better avoided in polite communication. Everybody, please, think twice whether your post adds value

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
Yawn, more F.U.D. On Wed, Jul 18, 2018 at 9:20 PM, Reimar Grabowski wrote: > On Wed, 18 Jul 2018 16:12:41 -0600 > Ryan Joseph wrote: > > > Personally for my taste I would like to just add a little keyword to the > end of the variable so I don’t have to worry about it later. > > 1) little,

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
> For high performance in a game engine you should not allocate/deallocate memory in the game loop at all (can be done, have done it*, so no arguing there). This is a massive oversimplification. Many *modern* game engines do not even have the kind of loop you're thinking of. > Outside the game

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Reimar Grabowski
On Wed, 18 Jul 2018 16:12:41 -0600 Ryan Joseph wrote: > Personally for my taste I would like to just add a little keyword to the end > of the variable so I don’t have to worry about it later. 1) little, innocent deallocation feature A 2) other user comes along: "We already have A, can it be

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Reimar Grabowski
On Wed, 18 Jul 2018 15:39:58 -0600 Ryan Joseph wrote: > 1) For high performance situations it really does matter... I was > doing a game engine recently and doing the create/free thing when I knew I > didn’t have to was painful. For high performance in a game engine you should not

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Reimar Grabowski
On Wed, 18 Jul 2018 14:33:51 -0600 Ryan Joseph wrote: > They probably wanted something like this: > > n := if x <> 0 then 10 else 20; > > Not too crazy in my opinion. Only if you think that changing a statement to an expression is not 'too crazy'. Btw in Kotlin if is an expression: val n =

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 4:01 PM, Ben Grasset wrote: > > Well, the array TFPGList uses for storage would still be allocated on the > heap in any case no matter what… That’s true but the other part remains true. Here’s from the FPC compiler itself. sc is declared at the top and ~400 lines

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 3:05 PM, Sven Barth via fpc-pascal > wrote: > > You have to keep in mind the history here. The "object" type is from Turbo > Pascal times and back then it already showed its weaknesses. Then along came > Delphi and Borland decided to introduce a brand new object model

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
Well, the array TFPGList uses for storage would still be allocated on the heap in any case no matter what... On Wed, Jul 18, 2018 at 3:10 PM, Ryan Joseph wrote: > > > > On Jul 18, 2018, at 12:47 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > A point against

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
Ironically, type safety is a good argument for the further development of various generics related things. Yet unfortunately I don't think anyone is going to stop using the Contnrs unit in new code anytime soon... ___ fpc-pascal maillist -

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
The "I might have to read code I don't like" argument people seem to keep resorting to comes off as rather childish, frankly. It's entirely subjective and specific to each person. For example, does *anyone *actually think the strange "lowercase everything" capitalization style the compiler uses

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread R0b0t1
On Wed, Jul 18, 2018 at 4:08 PM, Sven Barth via fpc-pascal wrote: > R0b0t1 schrieb am Mi., 18. Juli 2018, 21:46: >> >> On Wed, Jul 18, 2018 at 2:04 PM, Ryan Joseph >> wrote: >> > >> > >> >> On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal >> >> wrote: >> >> >> >> And to give you a

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread R0b0t1
On Wed, Jul 18, 2018 at 3:57 PM, Sven Barth via fpc-pascal wrote: > Ryan Joseph schrieb am Mi., 18. Juli 2018, > 21:37: >> >> >> >> > On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal >> > wrote: >> > >> > And to give you a slightly different example: around a year ago or so I >> >

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Sven Barth via fpc-pascal
R0b0t1 schrieb am Mi., 18. Juli 2018, 21:46: > On Wed, Jul 18, 2018 at 2:04 PM, Ryan Joseph > wrote: > > > > > >> On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > >> > >> And to give you a slightly different example: around a year ago or so I

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 18. Juli 2018, 21:41: > > > > On Jul 18, 2018, at 12:47 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > A point against stack based classes is that Object Pascal's object model > is highly geared towards polymorphism (with things like

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 18. Juli 2018, 21:37: > > > > On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > And to give you a slightly different example: around a year ago or so I > implemented a IfThen() intrinsic that works like the

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 1:46 PM, R0b0t1 wrote: > > You can make the function yourself. That you may have problems with > typing are indicative that the language could use a more expressive > type system, not that it was a good idea to create an intrinsic that > could (potentially) ignore types.

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread R0b0t1
On Wed, Jul 18, 2018 at 2:04 PM, Ryan Joseph wrote: > > >> On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal >> wrote: >> >> And to give you a slightly different example: around a year ago or so I >> implemented a IfThen() intrinsic that works like the if-statement, but as an >>

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 12:47 PM, Sven Barth via fpc-pascal > wrote: > > A point against stack based classes is that Object Pascal's object model is > highly geared towards polymorphism (with things like virtual class methods > and constructors that C++ does not support). You can't make use

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 12:44 PM, Sven Barth via fpc-pascal > wrote: > > And to give you a slightly different example: around a year ago or so I > implemented a IfThen() intrinsic that works like the if-statement, but as an > expression (like C's trinary ?: operator including not evaluating

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Florian Klaempfl
Am 17.07.2018 um 12:07 schrieb Michael Van Canneyt: If of course you write routines of several hundreds of lines (or thousands), then you probably would need to have such a feature. But I would fire any programmer that writes such code anyway, since it indicates he cannot think structured.

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 18. Juli 2018, 19:00: > > > > On Jul 18, 2018, at 7:14 AM, Ben Grasset wrote: > > > > Classes are unsuitable performance-wise for many use cases, and TP > objects lack important features such as variant parts. Advanced records are > a great lightweight in-between

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 18. Juli 2018, 19:15: > > > > On Jul 17, 2018, at 2:41 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > There is a more important difference: the developers and the users. Only > because the latters think an idea is good or probable

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 17, 2018, at 2:41 PM, Sven Barth via fpc-pascal > wrote: > > There is a more important difference: the developers and the users. Only > because the latters think an idea is good or probable the former do not > necessarily need to agree. And don't forget that we, the developers work

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ryan Joseph
> On Jul 18, 2018, at 7:14 AM, Ben Grasset wrote: > > Classes are unsuitable performance-wise for many use cases, and TP objects > lack important features such as variant parts. Advanced records are a great > lightweight in-between point. Yes indeed. Not being able to allocate classes on

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Ben Grasset
They observably *are* good though, now that they've been implemented, especially in combination with management operators. These are features that objectively make FPC better. I'm unsure what the original concern could have even possibly been, other than some vague notion of "well, records didn't

Re: [fpc-pascal] Syntax changes suggestions

2018-07-18 Thread Dekks Herton
Ryan Joseph writes: >> On Jul 17, 2018, at 2:07 PM, Jim Lee wrote: >> >> And that's why I hesitate whenever someone comes along and says we should >> add to Pascal > > I just want my life to be easier and to enjoy programming in Pascal as > much as possible. If I’m doing work I don’t have

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 13:28, Ryan Joseph wrote: If I’m doing work I don’t have to, merely knowing that Pascal has remained pure to the original specification is not very much comfort to me. I'm not advocating for purity.  I'm advocating for diversity.  I don't want to see Pascal become MumbleScript,

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Martin
On 07/17/18 11:50, Ryan Joseph wrote: If lots of programmers using main stream languages like c++ are having a similar problem we are I think it’s incumbent for Pascal to at least consider if there is merit to the concern. So if a lot of programmers find it bad to have to much

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 13:28, Ryan Joseph wrote: On Jul 17, 2018, at 2:07 PM, Jim Lee wrote: And that's why I hesitate whenever someone comes along and says we should add to Pascal I just want my life to be easier and to enjoy programming in Pascal as much as possible. If I’m doing work I don’t

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Sven Barth via fpc-pascal
Am 17.07.2018 um 22:32 schrieb Ryan Joseph: On Jul 17, 2018, at 2:15 PM, Sven Barth via fpc-pascal wrote: Those specific features you mention were added because of Delphi compatibility not because someone thought they are good. Florian even likened records with methods to a can of worms

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Ryan Joseph
> On Jul 17, 2018, at 2:15 PM, Sven Barth via fpc-pascal > wrote: > > Those specific features you mention were added because of Delphi > compatibility not because someone thought they are good. Florian even likened > records with methods to a can of worms before they were implemented.

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Ryan Joseph
> On Jul 17, 2018, at 2:07 PM, Jim Lee wrote: > > And that's why I hesitate whenever someone comes along and says we should add > to Pascal I just want my life to be easier and to enjoy programming in Pascal as much as possible. If I’m doing work I don’t have to, merely knowing that Pascal

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Sven Barth via fpc-pascal
Am 17.07.2018 um 20:00 schrieb Ryan Joseph: On Jul 17, 2018, at 11:27 AM, Jim Lee wrote: Likewise, "modern" programming languages are all converging on a common feature set, like cultural cross-pollination. if that’s our mindset then how do we account for times when we’ve actually

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 11:50, Ryan Joseph wrote: On Jul 17, 2018, at 12:24 PM, Jim Lee wrote: It has to fit the spirit of the language as well. I don’t propose new features to copy other languages but I’ll mention other languages as evidence that more people than just myself have discovered some

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Martin
On 17/07/2018 15:34, Michael Van Canneyt wrote: On Tue, 17 Jul 2018, Vojtěch Čihák wrote: Hi, Lazarus has option "Show Class/Proc Hint" which displays method name (with light-green background) as the top line in source editor, only if the method's body is longer than number of lines in

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Ryan Joseph
> On Jul 17, 2018, at 12:24 PM, Jim Lee wrote: > > It has to fit the spirit of the language as well. I don’t propose new features to copy other languages but I’ll mention other languages as evidence that more people than just myself have discovered some merit to the concept (i.e. a form of

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 11:00, Ryan Joseph wrote: On Jul 17, 2018, at 11:27 AM, Jim Lee wrote: Likewise, "modern" programming languages are all converging on a common feature set, like cultural cross-pollination. if that’s our mindset then how do we account for times when we’ve actually identified

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Ryan Joseph
> On Jul 17, 2018, at 11:27 AM, Jim Lee wrote: > > Likewise, "modern" programming languages are all converging on a common > feature set, like cultural cross-pollination. if that’s our mindset then how do we account for times when we’ve actually identified a common pattern that a language

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Jim Lee
On 07/17/18 07:49, Marco van de Voort wrote: Worse, IMHO creeping unnecessary dialect change is worse than remaining different. The spread of codebases over the various subdialects is worse than any benefits these half assed extensions can ever have. It is spreading language development thin

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Ryan Joseph
> On Jul 16, 2018, at 11:20 PM, Sven Barth via fpc-pascal > wrote: > > Because they are programmers. They simply do it their way. And I'm especially > talking about code written by two different programmers, one storing the > instance somewhere and the other passing in an "auto" instance

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Sven Barth via fpc-pascal
Marco van de Voort schrieb am Di., 17. Juli 2018, 16:50: > To be honest, I'm wondering why Sven actually bothers to answer this > nonsense. > Trust me, I wonder the same  Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > However, I do wish that people wouldn't resort to that same old > chestnut. There ought to be a Pascal discussion equivalent of Godwin's > Law: "sooner or later in any debate about a language feature somebody > will complain that it's too much

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Reimar Grabowski
On Tue, 17 Jul 2018 12:04:19 +0200 Martin wrote: > But more troubling: > You do no longer have a complete list of all local vars. That means, if > I want to add a (current style) local var "i", i may have to scan the > entire procedure (maybe hundreds of lines) to find if there already is a >

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Vojtěch Čihák
. And I guess programmers have usually bigger displays.   V.   __ Od: Michael Van Canneyt Komu: FPC-Pascal users discussions Datum: 17.07.2018 15:34 Předmět: Re: [fpc-pascal] Syntax changes suggestions On Tue, 17 Jul 2018, Vojtěch Čihák

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Vojtěch Čihák wrote: Hi,   Lazarus has option "Show Class/Proc Hint" which displays method name (with light-green background) as the top line in source editor, only if the method's body is longer than number of lines in source editor. Maybe new option "Show Proc var

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Mark Morgan Lloyd
don't like looking at such C code, so why would I want that in Pascal This is not my fight because TBH I'm inclined to avoid novel language features until I know that using them won't impact on some of the older kit I try to keep stuff compiled for. However, I do wish that people wouldn't

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Vojtěch Čihák
displaying var block in long methods would be enough? Jumps between code and declaration would not be needed.   V. __ Od: Michael Van Canneyt Komu: FPC-Pascal users discussions Datum: 17.07.2018 12:30 Předmět: Re: [fpc-pascal] Syntax changes su

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Henry Vermaak wrote: On Tue, Jul 17, 2018 at 12:07:10PM +0200, Michael Van Canneyt wrote: >On Tue, Jul 17, 2018 at 11:14:31AM +0200, Michael Van Canneyt wrote: If you need to "reduce the scope of variables", your routines are too long to begin with. If of course you

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Martin wrote: On 17/07/2018 11:05, Henry Vermaak wrote: On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: I have some suggestions of change to freepascal syntax, just to debate (All are

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Henry Vermaak
On Tue, Jul 17, 2018 at 12:07:10PM +0200, Michael Van Canneyt wrote: > >On Tue, Jul 17, 2018 at 11:14:31AM +0200, Michael Van Canneyt wrote: > If you need to "reduce the scope of variables", your routines are too long to > begin with. > > If of course you write routines of several hundreds of

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Henry Vermaak wrote: On Tue, Jul 17, 2018 at 12:07:42PM +0200, Martin wrote: On 17/07/2018 12:02, Henry Vermaak wrote: >On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: >>*you* might do this, but there are enough developers that won't. I

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Martin
On 17/07/2018 11:05, Henry Vermaak wrote: On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: I have some suggestions of change to freepascal syntax, just to debate (All are backward compatible) - Declaring variables

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Henry Vermaak
On Tue, Jul 17, 2018 at 12:07:42PM +0200, Martin wrote: > On 17/07/2018 12:02, Henry Vermaak wrote: > >On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: > >>*you* might do this, but there are enough developers that won't. I > >>already > >By not having this feature you're

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Martin wrote: On 17/07/2018 12:02, Henry Vermaak wrote: On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: *you* might do this, but there are enough developers that won't. I already By not having this feature you're not giving anyone a choice.

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Martin
On 17/07/2018 12:02, Henry Vermaak wrote: On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: *you* might do this, but there are enough developers that won't. I already By not having this feature you're not giving anyone a choice. By having this feature you are

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Henry Vermaak wrote: On Tue, Jul 17, 2018 at 11:14:31AM +0200, Michael Van Canneyt wrote: On Tue, 17 Jul 2018, Henry Vermaak wrote: >On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: >>Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: >> >>> I

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Henry Vermaak
On Tue, Jul 17, 2018 at 11:45:26AM +0200, Sven Barth via fpc-pascal wrote: > Henry Vermaak schrieb am Di., 17. Juli 2018, > 11:05: > > > On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: > > > Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: > > > > > > > I have some

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Sven Barth via fpc-pascal
Henry Vermaak schrieb am Di., 17. Juli 2018, 11:05: > On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: > > Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: > > > > > I have some suggestions of change to freepascal syntax, just to debate > > > > > > (All are backward

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Henry Vermaak
On Tue, Jul 17, 2018 at 11:14:31AM +0200, Michael Van Canneyt wrote: > On Tue, 17 Jul 2018, Henry Vermaak wrote: > >On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: > >>Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: > >> > >>> I have some suggestions of change to

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Mark Morgan Lloyd
On 17/07/18 09:15, Henry Vermaak wrote: On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote:> Santiago A. schrieb am Mo., 16. Juli 2018, 13:41:> > > I have some suggestions of change to freepascal syntax, just to debate> >> > (All are backward compatible)> >> > -

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Michael Van Canneyt
On Tue, 17 Jul 2018, Henry Vermaak wrote: On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: > I have some suggestions of change to freepascal syntax, just to debate > > (All are backward compatible) > > - Declaring

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Henry Vermaak
On Mon, Jul 16, 2018 at 03:02:42PM +0200, Sven Barth via fpc-pascal wrote: > Santiago A. schrieb am Mo., 16. Juli 2018, 13:41: > > > I have some suggestions of change to freepascal syntax, just to debate > > > > (All are backward compatible) > > > > - Declaring variables inside blocks, and loop

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Marco van de Voort
In our previous episode, Santiago A. said: > > And since the feature is implementable as an IDE macro (generating a nested > > try except/finally) it doesn't make Ooccam's razor of usefulness to begin > > with. > The Occam's razor is that if it is so usefull that a macro is used a > lot, why not

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Santiago A.
El 17/07/2018 a las 10:11, Marco van de Voort escribió: In our previous episode, Sven Barth via fpc-pascal said: interested in why it is not supported. At least Delphi Tokyo (10.2) does not support it. If I remember the discussion correctly it came to light that some users would need "try ?

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Santiago A.
El 16/07/2018 a las 21:27, Marco van de Voort escribió: In our previous episode, Sven Barth via fpc-pascal said: function) In such cases, you don't declare it "auto". Just as you don't free a pointer in the function you declare it if you pass the instance to another code that stores it beyond

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Marco van de Voort
In our previous episode, Sven Barth via fpc-pascal said: > > interested in why it is not supported. > > At least Delphi Tokyo (10.2) does not support it. > > If I remember the discussion correctly it came to light that some users > would need "try ? finally ? except ? end" while others would

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread el_es
On 17/07/18 06:16, Sven Barth via fpc-pascal wrote: > Am 16.07.2018 um 23:14 schrieb R0b0t1: >> On Mon, Jul 16, 2018 at 3:28 PM, Sven Barth via fpc-pascal >> wrote: >>> Am 16.07.2018 um 19:55 schrieb R0b0t1: > - Try except finally blocks I can support this one, I am surprised it

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Sven Barth via fpc-pascal
Am 17.07.2018 um 04:48 schrieb Ryan Joseph: On Jul 16, 2018, at 7:02 AM, Sven Barth via fpc-pascal wrote: Might come, though not in that way (take your example: what if you pass the instance to some other code that stores it beyond the life time of the function) That’s what you guys said

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Sven Barth via fpc-pascal
Am 16.07.2018 um 23:14 schrieb R0b0t1: On Mon, Jul 16, 2018 at 3:28 PM, Sven Barth via fpc-pascal wrote: Am 16.07.2018 um 19:55 schrieb R0b0t1: - Try except finally blocks I can support this one, I am surprised it is not already supported. Wasn't this mentioned in another recent thread as

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ryan Joseph
> On Jul 16, 2018, at 1:27 PM, Marco van de Voort wrote: > >> But you don't necessarily know that the function you call does that (think >> third party code). And people *will* use this and don't think about the >> consequences. So a system with automatic reference counting is safer and >>

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ryan Joseph
> On Jul 16, 2018, at 11:55 AM, R0b0t1 wrote: > > Declarations inside blocks I am unable to support. Declarations as > loops I *might* be able to support, but once you go from a C-like > language to Pascal and get used to predeclaring variables it starts to > become nice. You don't have to

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ryan Joseph
> On Jul 16, 2018, at 7:02 AM, Sven Barth via fpc-pascal > wrote: > > Might come, though not in that way (take your example: what if you pass the > instance to some other code that stores it beyond the life time of the > function) That’s what you guys said about my awesome “stack alias”

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ryan Joseph
> On Jul 16, 2018, at 8:27 AM, Santiago A. wrote: > >> - Autofree pointers >> >> Might come, though not in that way (take your example: what if you pass the >> instance to some other code that stores it beyond the life time of the >> function) > In such cases, you don't declare it "auto".

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread Ralf Quint
On 7/16/2018 8:36 AM, Anthony Walter wrote: To the OP: For the sake of brevity, my vote is simply "no" to all your suggestions. +1 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___

Re: [fpc-pascal] Syntax changes suggestions

2018-07-16 Thread R0b0t1
On Mon, Jul 16, 2018 at 3:28 PM, Sven Barth via fpc-pascal wrote: > Am 16.07.2018 um 19:55 schrieb R0b0t1: >> >> >>> - Try except finally blocks >> >> I can support this one, I am surprised it is not already supported. >> Wasn't this mentioned in another recent thread as existing? Does it >>

  1   2   >