José Valim
6b2cc2332e
Raise clearer error message on number followed by identifiers, closes #10755
2021-03-11 13:12:39 +01:00
José Valim
d8d26e917a
Warn on wrong dialyzer annotation to avoid breakage
2021-03-11 10:45:14 +01:00
doorgan
f3ee6c51cc
Improve improper lists typespecs readability ( #10782 )
2021-03-10 21:35:26 +01:00
doorgan
dbc149d3f4
Clarify what type1 and type2 mean in maybe_improper_list typespec ( #10780 )
...
The typespecs for `maybe_improper_list` and `nonempty_improper_list` have little documentation, both in Elixir and Erlang docs. While the name is self-explanatory, the meaning of `type1` amd `type2` in the expression `maybe_improper_list(type1, type2)` is not clarified.
The [Erlang docs on typespecs](https://erlang.org/doc/reference_manual/typespec.html ) have the following comments:
```erlang
| maybe_improper_list(Type1, Type2) %% Type1=contents, Type2=termination
| nonempty_improper_list(Type1, Type2) %% Type1 and Type2 as above
```
This PR just mirrors these two comments in the Elixir docs.
2021-03-10 18:45:27 +01:00
José Valim
51d90f1932
Allow heredoc inside heredoc interpolation
...
Closes #10698
2021-03-10 16:03:24 +01:00
José Valim
8c29984ed1
Add :newline to unescape_map
2021-03-10 12:30:29 +01:00
José Valim
e8e54d69d5
Add a section on formatter line length, closes #10677
2021-03-10 11:44:00 +01:00
José Valim
c537c39c52
Validate dialyzer attributes, closes #10534
2021-03-10 11:13:41 +01:00
Eksperimental
5dbd1ab4ed
Improve spec in Integer.parse/2 ( #10776 )
2021-03-09 15:23:17 +01:00
Timmo Verlaan
abbb7983a0
Raise FunctionClauseError when passing invalid arguments to Date.compare/2 ( #10774 )
2021-03-08 19:09:41 +01:00
José Valim
7795cfc48d
Fix bootstrap
2021-03-08 09:50:01 +01:00
José Valim
a4ddf18871
Do not add compile time dependencies on @compile {:no_warn_undefined, _}
2021-03-08 09:39:32 +01:00
José Valim
01fdb4c7fb
Clarify compile-time dependencies on module attributes
2021-03-07 20:00:08 +01:00
José Valim
5b3ae1b8c3
Rewrite not (foo in bar) to foo not in bar
2021-03-07 20:00:08 +01:00
Michał Łępicki
6ecab05bce
Update Module.ParallelChecker.fetch_export/4 spec ( #10772 )
...
The return type changed in 96661c6963
2021-03-07 08:51:01 +01:00
José Valim
c34fa0ca5c
Fix warnings
2021-03-06 19:38:34 +01:00
José Valim
96661c6963
Show removal and deprecated tips from Erlang/OTP
2021-03-06 18:21:20 +01:00
José Valim
bc0af62b21
Do not discard empty paths when merging, closes #10771
2021-03-06 09:30:30 +01:00
Matteo
95c2ddc307
Rectify usage of reader in release configuration ( #10769 )
2021-03-05 18:01:40 +01:00
José Valim
129dec4b4d
Add more docs around config providers
2021-03-05 12:58:06 +01:00
Nathan Long
1f67ba6ca3
Note that dependency configs are not used ( #10765 )
2021-03-03 18:48:58 +01:00
Eksperimental
1666cf23bb
Standardize use of "data types" and "data structure" ( #10764 )
2021-03-03 13:57:51 +01:00
John Bampton
87f65c1e1d
chore: remove unneeded whitespace ( #10762 )
2021-02-28 09:39:35 +01:00
John Bampton
c081dd1c50
chore: remove unneeded trailing whitespace ( #10761 )
2021-02-28 09:38:57 +01:00
Benjamin Milde
e3d88ae21c
Copy upstream documentation change about regex ascii character class deficiency ( #10757 )
...
https://github.com/erlang/otp/pull/4551
2021-02-27 15:00:07 +01:00
Mihai Târnovan
6db7b54c4c
Use :os.env/0 in System.get_env if available ( #10753 )
2021-02-25 15:49:02 +01:00
José Valim
4098349cc5
Use proper comparison of otp_release
2021-02-24 16:00:00 +01:00
José Valim
f0b227d401
No longer auto-sort bindings
2021-02-24 15:39:33 +01:00
José Valim
37b6b03efa
Use maps as bindings on Erlang/OTP 24 for faster evaluation
2021-02-24 15:16:10 +01:00
José Valim
73594085f2
Update erlang test helper
2021-02-24 09:50:48 +01:00
José Valim
ad3dda75d6
Remove duplicated tests
2021-02-24 09:40:56 +01:00
Adi Iyengar
7195724f17
Add documentation for Kernel.apply/x about clarity ( #10748 )
...
To better explain when to use apply, add a sentence similar
to [erlang docs](https://erlang.org/doc/man/erlang.html#apply-3 )
2021-02-23 08:58:29 +01:00
Bessenyei Balázs Donát
024b4540bc
Refine docstring for String.duplicate ( #10747 )
...
Duplicate `n` times might sound unusual to some. This commit changes the docstring for `String.duplicate` to use repeat.
2021-02-22 18:52:28 +01:00
sabiwara
2b8de98623
Optimize Enum.join/3 for lists ( #10746 )
2021-02-22 12:40:03 +01:00
sabiwara
fa078c2fbb
Optimize Enum.intersperse/2 ( #10745 )
2021-02-22 08:59:52 +01:00
sabiwara
be26437a3e
Optimize Enum.scan/2 and Enum.scan/3 ( #10744 )
2021-02-21 13:47:38 +01:00
Wojtek Mach
b17d3a6cca
Support 16bit floats in bitstrings ( #10740 )
...
On OTP 24:
iex> <<x::float-16>> = <<60, 0>>
iex> x
1.0
iex> <<x::float-16>>
<<60, 0>>
Before OTP 24 we'd get errors or wouldn't match:
iex> <<1.0::float-16>>
** (ArgumentError) argument error while evaluating iex at line 1
<<x::float-16>> = <<60, 0>>
** (MatchError) no match of right hand side value: <<60, 0>>
iex> (fn <<x::float-16>> -> x; _ -> :nomatch end).(<<60, 0>>)
:nomatch
2021-02-20 11:24:58 +01:00
sabiwara
be4cb59aea
Optimize Enum.dedup/1 ( #10741 )
2021-02-20 08:01:13 +01:00
Nathan Long
4d9ba81972
Expand example and explanation of with clause ( #10739 )
2021-02-18 19:32:29 +01:00
Eksperimental
c1bcb06e10
Update erlang.org links ( #10737 )
...
Consistently use https://erlang.org
See also ExDoc PR: https://github.com/elixir-lang/ex_doc/pull/1335
2021-02-18 13:18:43 +01:00
Eksperimental
61fed4a315
Migrate Erlang module URLs to Erlang module links ( #10736 )
2021-02-18 06:43:13 +01:00
Eksperimental
01c4ccff77
Revise use of link titles ( #10735 )
...
It removes the use of indiscriminate title casing.
Pages titles in Elixir pages are not title cased.
2021-02-17 21:30:43 +01:00
Eksperimental
545edebe44
Improve wording and typespecs in ambiguous datetimes ( #10732 )
2021-02-17 21:26:36 +01:00
Jonathan Arnett
74e38a3e74
Mark is_struct/2 code as generated ( #10734 )
2021-02-17 21:00:04 +01:00
Eksperimental
ab368900bc
Improve grammar around "then" ( #10727 )
2021-02-17 16:39:16 +01:00
dwiyanr
2bd687f331
Cleanup waiting map on Task.Supervised.stream/6 ( #10729 )
...
When running Task.Supervised.stream/6 with ordered options turned off,
the "waiting" map to store the response from task is not cleaned up.
This leads to the response piled up in the map causing memory leak.
This changes cleanup the map of the response that has been delivered to the reducer
function.
2021-02-17 16:07:02 +01:00
José Valim
a34a977224
Simplify nested call
2021-02-17 15:59:21 +01:00
Eksperimental
61e73899c1
Add clarification in Atoms section in Unicode syntax page ( #10725 )
2021-02-17 13:01:37 +01:00
Eksperimental
b15a5ee95f
Fix warning message mentioning quoted atoms may end with ! or ? ( #10724 )
2021-02-17 12:08:53 +01:00
Eksperimental
38220526f0
Improve syntax docs ( #10723 )
2021-02-17 07:46:26 +01:00