TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Elixir v0.14.0

45 点作者 devinus将近 11 年前

4 条评论

sr-ix将近 11 年前
The changelog for this particular release: <a href="https://github.com/elixir-lang/elixir/releases/tag/v0.14.0" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elixir-lang&#x2F;elixir&#x2F;releases&#x2F;tag&#x2F;v0.14.0</a><p>Enhancements<p>[ExUnit] Add on_exit&#x2F;1 callbacks that are guaranteed to run once the test process exits and always in another process<p>[Kernel] Store documentation in the abstract code to avoid loading them when the module is loaded<p>[Kernel] Add get_in&#x2F;2, put_in&#x2F;3, update_in&#x2F;3 and get_and_update_in&#x2F;3 to handle nested data structure operations<p>[Kernel] Add get_in&#x2F;1, put_in&#x2F;2, update_in&#x2F;2 and get_and_update_in&#x2F;2 to handle nested data structure operations via paths<p>[Mix] Add Mix.Config to ease definition of configuration files<p>[Mix] Add mix loadconfig task that can be called multiple times to load external configs<p>[Mix] Support --config option on mix run<p>[Mix] Support HTTP_PROXY and HTTPS_PROXY on Mix url commands<p>[Mix] Support --names options in mix help which emit only names (useful for autocompletion)<p>[Protocol] Add Protocol.consolidate&#x2F;2, Protocol.consolidated?&#x2F;1 and a mix compile.protocols task for protocol consolidation<p>[Protocol] Add Protocol.derive&#x2F;3 for runtime deriving of a struct<p>[String] Add String.chunk&#x2F;2<p>[Struct] Add support for @derive before defstruct&#x2F;2 definitions<p>Bug fixes<p>[File] File.rm now consistently deletes read-only across operating systems<p>[Kernel] Ensure Mix _build structure works on Windows when copying projects<p>[Kernel] Ensure 1.0E10 (with uppercase E) is also valid syntax<p>[Mix] Fix mix do task for Windows&#x27; powershell users<p>[Path] Fix Path.absname(&quot;&#x2F;&quot;) and Path.expand(&quot;&#x2F;&quot;) to return the absolute path &quot;&#x2F;&quot;.<p>Soft deprecations (no warnings emitted)<p>[Kernel] size&#x2F;1 is deprecated, please use byte_size&#x2F;1 or tuple_size&#x2F;1 instead<p>[ExUnit] teardown&#x2F;2 and teardown_all&#x2F;2 are deprecated in favor of on_exit&#x2F;1 callbacks<p>Deprecations<p>[Access] Access.access&#x2F;2 is deprecated in favor of Access.get&#x2F;2<p>[Dict] Dict.Behaviour is deprecated in favor of Dict<p>[Kernel] Application.Behaviour, GenEvent.Behaviour, GenServer.Behaviour and Supervisor.Behaviour are deprecated in favor of Application, GenEvent, GenServer and Supervisor<p>[Kernel] defexception&#x2F;3 is deprecated in favor of defexception&#x2F;1<p>[Kernel] raise&#x2F;3 is deprecated in favor of reraise&#x2F;2<p>[Kernel] set_elem&#x2F;3 is deprecated in favor of put_elem&#x2F;3<p>[Kernel] Passing an atom var!&#x2F;1 is deprecated, variables can be built dynamically with Macro.var&#x2F;2<p>[Mix] Exceptions that define a :mix_error field to be compatible with Mix are no longer supported. Instead please provide a :mix field and use Mix.raise&#x2F;1 and Mix.raise&#x2F;2<p>Backwards incompatible changes<p>[Access] Kernel.access&#x2F;2 no longer exists and the Access protocol now requires get&#x2F;2 (instead of access&#x2F;2) and get_and_update&#x2F;3 to be implemented<p>[Kernel] Retrieving docs as module.__info__(:docs) is no longer supported, please use Code.get_docs&#x2F;2 instead<p>[Kernel] Code.compiler_options&#x2F;1 no longer accepts custom options, only the ones specified by Elixir (use mix config instead)<p>[Mix] mix new no longer generates a supevision tree by default, please pass --sup instead<p>[Task] Tasks are automatically linked to callers and a failure in the task will crash the caller directly
MartinMond将近 11 年前
We&#x27;ve started using Elixir in our Erlang application and it&#x27;s been a pleasure to work with. Everyone in my office agrees they would&#x27;ve loved to have this when they started with Erlang.
评论 #7905700 未加载
disputin将近 11 年前
I&#x27;ve been keeping an eye on Elixir for a while, waiting for some spare time. What are reasons not to use it in favour of Erlang?
评论 #7905635 未加载
lucidrains将近 11 年前
Has anyone used Elixir in production yet?