{"id":7632,"date":"2018-06-21T14:08:02","date_gmt":"2018-06-21T17:08:02","guid":{"rendered":"http:\/\/blog.plataformatec.com.br\/?p=7632"},"modified":"2018-06-22T03:07:34","modified_gmt":"2018-06-22T06:07:34","slug":"whats-new-in-elixir-jun-18","status":"publish","type":"post","link":"http:\/\/blog.plataformatec.com.br\/2018\/06\/whats-new-in-elixir-jun-18\/","title":{"rendered":"What’s new in Elixir – Jun\/18"},"content":{"rendered":"
Erlang\/OTP 21.0 was just released and work on the upcoming Elixir v1.7 release is ongoing. In this post, we highlight some of the features that have already landed in the Elixir master branch.<\/p>\n
do<\/code> or an end<\/code> (commit<\/a>).<\/p>\n<\/li>\n- \n
Erlang\/OTP 21.0 introduces a new way to retrieve the stacktrace that is lexically scoped and no longer relies on side-effects like System.stacktrace\/0<\/code> does. Elixir v1.7 will bring this feature to Elixir developers via the __STACKTRACE__<\/code> special form<\/a>. You can track other changes related to Erlang\/OTP 21.0 in its own issue<\/a>.<\/p>\n<\/li>\n- \n
The Calendar module also got some improvements, such as the addition of months_in_year\/1<\/a> and support for negative dates<\/a>.<\/p>\n<\/li>\n- \n
ExUnit has also seen its own share of improvements. Failures in doctests are now colored and diffed<\/a>. Assertions such as assert some_fun(arg1, arg2, arg3)<\/code> will now include the value of each argument in the failure report<\/a>. mix test<\/code> now supports the --failed<\/code> flag<\/a> that runs all tests that failed in the previous run, and mix test --cover<\/code> now includes a coverage summary out of the box<\/a>.<\/p>\n<\/li>\n<\/ul>\nFor the complete list of changes, see the CHANGELOG<\/a>. To keep track of upcoming changes and even contribute some features yourself, head to Elixir’s issues tracker<\/a>.<\/p>\nYou can also meet the Elixir team and learn more about Elixir v1.7 and its future at ElixirConf<\/a>.<\/p>\nHave fun!<\/p>\n","protected":false},"excerpt":{"rendered":"
Erlang\/OTP 21.0 was just released and work on the upcoming Elixir v1.7 release is ongoing. In this post, we highlight some of the features that have already landed in the Elixir master branch. Elixir will now provide hints of where a mistake may have happened when you forget a do or an end (commit). Erlang\/OTP … \u00bb<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[143],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/posts\/7632"}],"collection":[{"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/comments?post=7632"}],"version-history":[{"count":6,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/posts\/7632\/revisions"}],"predecessor-version":[{"id":7650,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/posts\/7632\/revisions\/7650"}],"wp:attachment":[{"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/media?parent=7632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/categories?post=7632"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.plataformatec.com.br\/wp-json\/wp\/v2\/tags?post=7632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}