User loginNavigation |
archivesChris Crawford's 9 Breakthroughs
Surprisingly, many of the ideas are about languages - either the programming languages used to program the games, or the language interfaces provided to users. Simple type system oriented questionI'd think I want to allow a function with this type: proc(class T cls) : T And I want such functions to support type subclasses. For a simple instantiating example: proc myfun(class Employee empcls) : Employee Where class Manager(Employee) Is this "principle of least surprise"? commonplace? or are there gotchas I'm not thinking about. Thanks much. Scott |
Browse archivesActive forum topics |