An open API service indexing awesome lists of open source software.

https://github.com/foxboron/hype

Function annotations for Hylang!
https://github.com/foxboron/hype

Last synced: about 1 year ago
JSON representation

Function annotations for Hylang!

Awesome Lists containing this project

README

          

Hype
====
The Hype is Real!

With the help of the [typeannotations]( https://github.com/ceronman/typeannotations ) you can have types, AND type checking with Hy!

Work in progress!

```hy
=> (require hype.ann)
=> (ann foo [int :-> str])
=> (defn foo [a] (str a))
=> (foo 1)
'1'
=> (foo "1")
Traceback (most recent call last):
...
TypeError: Incorrect type for "a"
```