Recent

Author Topic: [SOLVED] TStringList save as UTF16 LE/BE  (Read 2268 times)

totya

  • Hero Member
  • *****
  • Posts: 722
Re: TStringList save as UTF16 LE/BE
« Reply #15 on: March 05, 2023, 06:03:31 pm »

VisualLab

  • Hero Member
  • *****
  • Posts: 706
Re: TStringList save as UTF16 LE/BE
« Reply #16 on: March 05, 2023, 10:00:14 pm »
looking at TStringList in newer versions of the compiler, I don't  understand the use or "Shift, Map, Pop, reduce, Reverse etc" in that class?

This is functional programming fashion. There is hype for it, so our language must have it too. It's been added a bit to Python, to Ruby, to Java, to C#. Even C++ has been "stuffed" for many years. I wonder if they have already added monads to C++ or will they just add :)

Is it really that necessary? In functional languages, probably yes. For imperative languages, it's just a fashion brooch. It's like in a nouveau riche marriage: "Everyone donated to charity, so we must too. Otherwise, we will be badly perceived in our sphere" :)

And now no joking. There are no descriptions in the documentation for the TStringList class, nothing about what these methods really do. And they would be useful.

dsiders

  • Hero Member
  • *****
  • Posts: 1509
Re: TStringList save as UTF16 LE/BE
« Reply #17 on: March 05, 2023, 10:13:01 pm »
And now no joking. There are no descriptions in the documentation for the TStringList class, nothing about what these methods really do. And they would be useful.

They exist in the XML content used to build the docs. Now you'll just have to wait for a new release which includes updated help.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6267
  • Compiler Developer
Re: TStringList save as UTF16 LE/BE
« Reply #18 on: March 08, 2023, 11:12:30 pm »
Is it really that necessary? In functional languages, probably yes. For imperative languages, it's just a fashion brooch. It's like in a nouveau riche marriage: "Everyone donated to charity, so we must too. Otherwise, we will be badly perceived in our sphere" :)

That has nothing to do with functional programming languages. These functions are just as useful in imperative languages. It simply depends on what you need to do with the data structures.

 

TinyPortal © 2005-2018