Elixir 0.13 发布了,Elixir 是一种函数式编程语言,建立在Erlang虚拟机之上。它是一种动态语言,灵活的语法与宏支持,利用Erlang的能力来构建并发、分布式、容错应用程序与热代码升级。
下载 https://github.com/elixir-lang/elixir/releases
特性增加
[Base] Add Base module which does conversions to bases 16, 32, hex32, 64 and url64
[Code] Add Code.eval_file/2
[Collectable] Add the Collectable protocol that empowers Enum.into/2 and Stream.into/2 and the:into option in comprehensions
[Collectable] Implement Collectable for lists, dicts, bitstrings, functions and provide bothFile.Stream and IO.Stream
[EEx] Add handle_body/1 callback to EEx.Engine
[Enum] Add Enum.group_by/2, Enum.into/2, Enum.into/3, Enum.traverse/2 and Enum.sum/2
[ExUnit] Randomize cases and tests suite runs, allow seed configuration and the --seed flag via mix test
[ExUnit] Support --only for filtering when running tests with mix test
[ExUnit] Raise an error if another capture_io process already captured the device
[ExUnit] Improve formatter to show source code and rely on lhs and rhs (instead of expected and actual)
[IEx] Allow prompt configuration with the :prompt option
[IEx] Use werl on Windows
[Kernel] Support ERL_PATH in bin/elixir
[Kernel] Support interpolation in keyword syntax
[Map] Add a Map module and support 17.0 maps and structs
[Mix] Add dependency option :only to specify the dependency environment. mix deps.get and mix deps.update works accross all environment unless --only is specified
[Mix] Add Mix.Shell.prompt/1
[Mix] Ensure the project is compiled in case Mix' CLI cannot find a task
[Node] Add Node.ping/1
[Process] Include Process.send/3 and support the --gen-debug option
[Regex] Regexes no longer need the "g" option when there is a need to use named captures
[Stream] Add Stream.into/2 and Stream.into/3
[StringIO] Add a StringIO module that allows a String to be used as IO device
[System] Add System.delete_env/1 to remove a variable from the environment