Skip to content

Support for generics #30

@godcrampy

Description

@godcrampy

Are there any plans to support generics?

Rewriting with generics could largely reduce the risk of exposing runtime panics and converting them into compile-time errors.
For example:

func (accounting *Accounting) FormatMoney(value interface{}) string

The FormatMoney function takes in any type and does type a check only at runtime.

Happy to help with the refactor if it sounds like a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions