[fpc-pascal] Food for thought - language string improvement

Michael Van Canneyt michael at freepascal.org
Mon Jul 10 12:29:30 CEST 2017

On Mon, 10 Jul 2017, Graeme Geldenhuys wrote:

> On 2017-07-10 07:30, Michael Van Canneyt wrote:
>> If that is all, on the language side, I am a happy man :)
> I did mention that it was purposely a small list
>> Let me give you a counter example why I think Java plainly sucks.
>> I get very depressed when I see things like this:
> You do realise that you don't have to write code like that. ;-) It's 
> like me showing you bad examples of Object Pascal code - there are even 
> dedicated websites that does just that. :-) Just because the language 
> allows for such code, doesn't mean you have to write code like that.
> Saying that, I personally agree that your code example is hard to read 
> at first, and I simply try avoid writing Java code like that.

You can't. The APIs this is used in can only work like this. 
They require templates, and they have no other way to work.


> Some more examples of why I like Java.

Well, from your list the only thing I can see we could add 
is the catch block with multiple exception types.

The rest: I still don't see how this makes java "more modern".
Scala is more modern, that is for sure. I would not argue there.

But to each his own opinion, obviously.


More information about the fpc-pascal mailing list