Skip to content

support for typing annotations #184

@obriencj

Description

@obriencj

augment the function and define specials to support optional typing hints

potential examples

(define [foo :type int] 100)
(def function [do-something :type int]
   [[a type: str] [b type: int] [c: "Hello" type: str]]
   ... )

potentially this could augment the existing binding spec as well

(let [[foo as: inner-foo type: int]
     [(do-something 9) as: bar type: Any]
     [food 'tacos type: symbol]]
   ...)

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