Skip to content

Commit

Permalink
Merge pull request #53 from yrashk/072
Browse files Browse the repository at this point in the history
v0.7.2 announcement
  • Loading branch information
José Valim committed Dec 5, 2012
2 parents 345273f + 98dd066 commit b6e8231
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/search.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="widget news">
<h3>
News: <a href="/blog/2012/11/18/elixir-v0-7-1-released-and-the-end-of-a-journey/">Elixir v0.7.1 released, watch the video and slides</a>
News: <a href="/blog/2012/12/04/elixir-v0-7-2-released/">Elixir v0.7.2 released</a>
</h3>
</div>

Expand Down
46 changes: 46 additions & 0 deletions _posts/2012-12-04-elixir-v0-7-2-released.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
layout: post
title: Elixir v0.7.2 released
author: Yurii Rashkovskii
category: Releases
excerpt: Elixir v0.7.2 is released, new, improved type specifications syntax and many other improvements.

---

Hot out of the oven! We just released Elixir v0.7.2 with a number of delicious improvements.

One of the most important changes in this minor release is a partial rehaul of
the type specification syntax.

Here's the gist:

@spec myfun(integer), do: integer
# becomes
@spec myfun(integer) :: integer

@type a :: fun
# becomes
@type a :: (... -> any) or ((...) -> any) or (fun(...) -> any)
@type a :: fun(do: integer)
# becomes
@type a :: (() -> integer) or (fun() -> integer)
@type a :: fun(integer, do: integer)
# becomes
@type a :: (integer -> integer) or ((integer) -> integer) or (fun(integer) -> integer)
@type a :: fun(integer, integer, do: integer)
# becomes
@type a :: (integer, integer -> integer) or ((integer, integer) -> integer) or (fun(integer, integer) -> integer)

Another change is that Mix now echoes the output of external tools
such as git and rebar, and handles exit status correctly. This have previously
led to some less-than-perfect workflows.

We've also added a more compact and visual form of the `function` helper. Now, instead of `function(Enum, :all?, 2)` you can use `function(Enum.all?/2)`.

We've also figured out how to achieve an up to 6x [performance increase](https://github.com/elixir-lang/elixir/blob/v0.7.2/lib/elixir/lib/kernel.ex#L1386-L1417) when using records.

...and [many other fixes & improvements](https://github.com/elixir-lang/elixir/blob/v0.7.2/CHANGELOG.md).

Lastly, but not least importantly, I'd like to mention that we're very excited about how the community around Elixir is building up. Thank you all for being around and supporting us!

[Learn more about Elixir](/getting_started/1.html)!

0 comments on commit b6e8231

Please sign in to comment.