We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab88d30 commit b18d9e9Copy full SHA for b18d9e9
blog/_posts/2016-01-24-type-signatures.md
@@ -0,0 +1,25 @@
1
+---
2
+layout: post
3
+title: Type Signatures
4
+date: 2016-01-24 16:00:00 +0100
5
+author: Oskar Wickström
6
+categories: compiler
7
+comments: true
8
9
+
10
+In the spirit of making Oden code more understandable and to help the developer
11
+writing the code, support for type signatures has been added in [Oden
12
+0.2.1-RC1](#). They are optional but recommended to use.
13
14
+{% highlight clojure %}
15
+(: identity (int -> int))
16
+(def (incr n) (+ n 1))
17
18
+(: twice ((#a -> #a) -> (#a -> #a)))
19
+(def (twice f x) (f (f x)))
20
21
+(: two int)
22
+(def two (twice incr 0))
23
+{% endhighlight %}
24
25
+If you find any issues please [report them on GitHub](https://github.com/oden-lang/oden/issues).
0 commit comments