Skip to content

Generics ToDos #22

Open
Open
@lemonmojo

Description

  • Make it so that even in generic methods, the self parameter is always the first
  • Generic Types require a specialized constructor which we need to call through reflection
  • Probably same for the generated typeof method
  • We will probably need to adjust generated code for generic functions within generic types because such a function may use generic parameters of the declaring type, not just the function itself
  • Support constructed generic types to be able to actually use generic types outside of their own implementation
  • We can omit the generic type parameters of methods within generic types in the method itself because we can infer the generic type arguments from the instance. Unfortunately this won't work for static methods.
  • We can also keep the arguments and provide "real" generic versions of generic types in Swift because we then know the generic arguments and can forward them
  • Support a version of the TypeOf method for generic types that takes generic type arguments and returns a constructed generic type
  • We should split the unmanaged method writer in a reflection based and a regular version
  • Generic Delegate Types

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions