Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add syntax highlight

  • Loading branch information...
commit 48d6843fca0423ee17f3d7cb90cd658bccea254a 1 parent b6e8231
@josevalim josevalim authored
Showing with 25 additions and 18 deletions.
  1. +25 −18 _posts/2012-12-04-elixir-v0-7-2-released.markdown
View
43 _posts/2012-12-04-elixir-v0-7-2-released.markdown
@@ -14,30 +14,37 @@ 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)
+{% highlight ruby %}
+@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)
+{% endhighlight %}
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 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.
+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)
+under some circunstances when using records.
...and [many other fixes & improvements](https://github.com/elixir-lang/elixir/blob/v0.7.2/CHANGELOG.md).
Please sign in to comment.
Something went wrong with that request. Please try again.