[fpc-pascal] Scoped enums and inferred types

Ryan Joseph ryan at thealchemistguild.com
Wed Feb 21 09:17:04 CET 2018



> On Feb 21, 2018, at 2:57 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> The job of the compiler is to create correct code. Not to ensure you write readable code. Every feature that is introduced
> offers more scope for abuse (generics jump to mind).

I think you may change your mind if you had to type NSSomeLongNameOfSomethingValueKey all day instead of .Value. Remembering prefix names is a waste of my time if the compiler can do it for me. I wonder how many hours total in my life I’ve spent writing lists of constants with prefixes and then typing them back out in function calls. 

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list