Commit Graph
7090 Commits
Author SHA1 Message Date
José Valim bfa3cfba19 Only rearrange not in if explicitly opted-in
Closes #7227.
2018-01-19 10:54:39 +01:00
José Valim 582e8210da Do not inject @opts on OTP behaviours, closes #7230 2018-01-19 09:59:18 +01:00
Wojtek Mach 44e86616da Link remaining functions on Guards page (#7228) 2018-01-19 09:08:31 +01:00
José Valim c480b68b2d Automatically translate deprecated code calls 2018-01-18 23:19:39 +01:00
Kelvin Stinghen 1419a3d126 More docs to Float (#7214) 2018-01-18 23:12:36 +01:00
Wojtek Mach 90ce44a614 Mention defguard on Guards page (#7226) 2018-01-18 23:11:49 +01:00
Fernando Tapia Rico 8b07d0e2c2 Update Tuple doc to express it's a composite type (#7222) 2018-01-18 23:02:13 +01:00
James Fish ef1f406d25 Reorder kw blocks in Macro.to_string (#7225) 2018-01-18 22:52:29 +01:00
José Valim 97cf609594 Add @spec to second clause of start_link/2
Closes #7218.
2018-01-18 10:26:43 +01:00
José Valim b3da75e711 Include examples to migrate to DynamicSupervisor 2018-01-17 21:10:59 +01:00
José Valim f36bb56288 Remove trailing whitespace 2018-01-16 12:40:29 +01:00
José Valim 4175ddebd9 Do not allow stabs mixed with expressions 2018-01-16 12:23:12 +01:00
Bryan Paxton 3142df4dd1 Update Guards.md to for clairty on boolean ops (#7212) 2018-01-15 23:54:00 +01:00
Unnawut Leepaisalsuwanna ca3b8415e5 Add documentation for quoted keys in Keyword's colon syntax (#7210) 2018-01-15 09:33:13 +01:00
José Valim b9591267dc Replace Code.load_file/2 by Code.compile_file/2 (#7201)
Currently there is no way to compile a file without leaving
footprints on the system. Plus, the term load_file/2 is very
confusing as loaded is the notation used by modules.

This commit focuses the whole loaded aspect of files exclusively
on require_file/2 (and renames two functions accordingly) and
introduces compile_file/2 which is semantically simpler than
load_file/2.
2018-01-13 22:04:22 +01:00
Jean-Philippe Cugnet c6a9bf37dc Don’t add parens for defrecord/3 and defrecordp/3 (#7204) 2018-01-13 19:56:05 +01:00
José Valim 684397f59c Normalize built-in attributes error messages 2018-01-12 21:01:44 +01:00
Mario de la Ossa cbcdcb1623 Add type union explanation to typespecs (#7197) 2018-01-11 10:08:42 +01:00
José Valim a719605abf Use flex_glue for bitstrings and tuples in the formatter (#7183)
Closes #7152
2018-01-11 10:07:48 +01:00
José Valim 4e01713973 Introduce a group for collections (#7185) 2018-01-11 10:07:31 +01:00
José Valim ce15d018d8 Remove leftover inspect 2018-01-10 09:41:35 +01:00
José Valim 2266e33ea5 Allow :macros and :includes to be given to Record.extract, closes #7195 2018-01-10 09:33:09 +01:00
José Valim 8ece3b9748 Fix precedence of & in regards to =, closes #7188 2018-01-09 14:13:45 +01:00
Marcin Szczepaniak b144c81e9d Simplify recursion in Integer.digits (#7190) 2018-01-09 14:01:29 +01:00
José Valim a7eb9adfe9 Consider case ignorable characters on Greek downcasing, closes #7149
Note this does not impact the runtime cost of other downcasing
operations. The final beam file grew only in 8kb.
2018-01-09 13:59:13 +01:00
Andrea Leopardi 8c05bb078d Fix a typo in a heredoc-related warning
[ci skip]
2018-01-08 14:23:39 +01:00
José Valim df1a7d3647 Remove unecessary digit/undigit clauses, closes #7187 2018-01-07 22:23:52 +01:00
José Valim f34d74913c Warn if heredoc is outdented, closes #7174 2018-01-07 17:46:42 +01:00
José Valim b66622e8f4 Do not autogenerate docs for defdelegate
This would cause code with multiple clauses where the last
one is a delegate to contain the wrong documentation.
2018-01-06 23:26:34 +01:00
Frank Hunleth df17e81d16 Fix inspect for non-decimal negative integers (#7181)
Before:

iex> inspect(-1, base: :hex)
"0x-1"

After:

iex> inspect(-1, base: :hex)
"-0x1"

This change also applies to the octal and binary base options.
2018-01-05 18:44:17 +01:00
José Valim f518f20372 Revert "Attempt to soft_purge modules, closes #7047"
Soft purging modules was badfun/badarg errors when
invoking left over anonymous functions.
2018-01-05 17:22:20 +01:00
José Valim 6fa3881beb Properly handle :erlang.element in Exception blame 2018-01-05 17:22:20 +01:00
Aaron Tinio d96088e166 Fix typo (#7178) 2018-01-05 08:36:50 +01:00
José Valim e044b661b9 Rearrange equals and inserts for shorter diff scripts
Closes #7169.
2018-01-02 23:06:52 +01:00
Wojtek Mach 8f5ee5b34c Add @impl true to StringIO & IEx.Pry (#7167) 2018-01-01 18:27:31 +01:00
Wojtek Mach 7853132edb Don't mention deprecated {Map,Keyword}.replace/3 in docs (#7166) 2018-01-01 16:58:58 +01:00
Wojtek Mach 471c87d044 Autolink to calendar types 2018-01-01 12:35:21 +01:00
Wojtek Mach f73daf7ffb Autolink sigils 2018-01-01 12:35:21 +01:00
Wojtek Mach db0204d50c Autolink operators 2018-01-01 12:35:21 +01:00
José Valim 889ae9afbb Do not leak variables during optimizations, closes #7161 2018-01-01 12:04:15 +01:00
Xavier Noria a01f704b19 s/when/after/ in Application.stop/1 docs [ci skip] (#7164) 2018-01-01 11:45:36 +01:00
Angelika Tyborska ebe33f1f2f Fix Application start and start_phase spec (#7153)
Related Erlang documentation:
http://erlang.org/doc/apps/kernel/application.html#Module:start-2
http://erlang.org/doc/apps/kernel/application.html#Module:start_phase-3
http://erlang.org/doc/apps/kernel/application.html#type-start_type
2017-12-30 18:50:09 +01:00
José Valim cbde356d10 Organize struct name matching in map_test 2017-12-30 18:42:45 +01:00
Donald Little b74de02190 Return right side expression value on struct matching (#7160) 2017-12-30 18:35:40 +01:00
Daniel Kempkens 7d6852ac76 Fix Supervisor.child_spec() type (#7157) 2017-12-29 21:54:30 +01:00
José Valim e4a82d5f88 Clear up deprecations page 2017-12-27 13:12:33 +01:00
José Valim c270e7211f Remove deprecation warnings 2017-12-26 23:18:18 +01:00
José Valim 44a8f665b1 Improvements to greek handling of downcase, closes #7149 2017-12-26 23:11:17 +01:00
José Valim 9e232a60a1 Store expanded expressions in defguard, closes #7147 2017-12-26 00:06:28 +01:00
Mohnish G J dc5d36a55e Explicitly specify :infinity as a :limit in IO.inspect (#7146) 2017-12-25 17:14:31 +01:00