User Tools

Site Tools


renamingarray

This is an old revision of the document!


Renaming PDF.Array to PDF.PDFArray

Submitted by ChristianHaider on Fri, 2011-09-02 09:19

It's just too confusing…

Things you need in daily life like Array should not have the same name in the PDF namespace. Generally, I want to have a close correlation between the names of the domain and the Smalltalk class names implementing them. This worked well with PDF but not perfect. F.ex. the class EncryptedString implements the concept of an encrypted string, but the name EncryptedString does not appear in the specification.

Therefore, I should take the naming a bit more relaxed. I start with /Array to be renamed to /PDFArray to avoid confusion with Smalltalk Array which is used in code a lot. Next candidates may be /String and /Dictionary.

Also, naming key classes uniquely simplyfies ports to dialects without namespaces.

renamingarray.1427798579.txt.gz · Last modified: 2015/03/31 12:42 by christian