[fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL
Michael Van Canneyt
michael at freepascal.org
Wed Jan 27 14:34:22 CET 2016
On Wed, 27 Jan 2016, Marcos Douglas wrote:
> On Wed, Jan 27, 2016 at 7:22 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> I don't think namespaces are the holy grail.
>>
>> Assume we introduce namespaces, do things 'Properly' and introduce
>> Core.FileUtils
>> Core.StringUtils
>> (the names are just examples, to make a point)
>>
>> Now let's take example existing routines such as
>> ExtractFilePath
>> ExtractFileName
>> Where do we put them ?
>
> Using your examples names -- I say that because I disagree they are good names:
>
> Core.File.Utils
> - ExtractFilePath
> - ExtractFileName
>
> These functions 'belong' to the file context, not strings.
Well, I disagree strongly:
I would put them in strings, since it is only about string manipulation.
That is my point: it depends on your starting position.
Michael.
More information about the fpc-devel
mailing list