Skip to content

Decide on syntax for optional type declaration #30

@MasonProtter

Description

@MasonProtter

We'll need a type declaration syntax at least for method definitions.

I was thinking something like this

f(x::Number, y::String) = (x, y)  

translating to

(defn f [(x :: Number) (y :: String)]) (tuple x y))

which leads to the question of parametric types and where. I'm not as sure about how to deal with those.

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