Skip to content

Hardcoded parse logic #11

@beef331

Description

@beef331

Presently the logic to parse types is hardcoded https://github.com/juancarlospaco/cliche/blob/nim/src/cliche.nim#L122-L139 . Is there any specific reason this does not use a generic interface like the following?

proc parseCommand[T](input: openarray[char]): T

This would enable support for any user type, without any added support from you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions