José Valim
29a74f8ad4
Improve docs for dynamic and task supervisors
2018-01-28 11:55:58 -02:00
José Valim
4b134c8cf5
Raise on invalid map syntax, closes #7268
2018-01-28 11:04:25 -02:00
José Valim
2a1ca02622
Implement child_spec/1 for DynamicSupervisor
2018-01-27 20:05:49 -02:00
crabonature
fcb2ac593c
Remove unnecessary code duplication
2018-01-27 19:58:53 -02:00
Diego Stratta
6dcc82738c
Fix typo ( #7269 )
2018-01-27 18:44:13 -02:00
Devon Estes
7e76ece1c8
Add missing typespecs and fix error in docs ( #7259 )
2018-01-26 13:14:32 -02:00
José Valim
00c7a3bc60
Merge binaries and bitstrings when possible
2018-01-25 15:40:44 -02:00
José Valim
83e6546f85
Perform merging of bitstring subinaries
2018-01-25 09:25:09 -02:00
Devon Estes
8bfdcd0f8b
Add missing documentation, examples and specs to Calendar.ISO ( #7256 )
2018-01-25 11:23:14 +01:00
José Valim
e0dc8b0051
Use posix and raw when extracing stale sources in Mix
...
Thanks @michalmuskala for the suggestion.
2018-01-25 08:16:59 -02:00
Michał Łępicki
106efa2ace
Illustrate specifying function argument names in Writing Documentation docs ( #7253 )
2018-01-24 14:38:20 +01:00
Devon Estes
464f4a0a49
Add missing typespecs to File module ( #7252 )
2018-01-24 13:46:19 +01:00
José Valim
12153869c5
Support comments in the middle of pipelines and type expressions
...
Closes #7231
2018-01-24 13:09:19 +01:00
Wojtek Mach
3281bbb4c7
Hide format of Date.Range.first|last_in_iso_days types ( #7251 )
2018-01-24 11:02:25 +01:00
José Valim
1b8b1ed9b3
Use Supervisor.init/2 instead of supervise/2 with the new child specs
2018-01-23 22:14:41 +01:00
José Valim
e07a41d9d0
Also use has_var? in Macro.expand
2018-01-23 11:41:45 +01:00
José Valim
8a23ec182c
Do not expose current_vars, provide proper APIs in Macro.Env
2018-01-23 10:02:00 +01:00
Benjamin Tan Wei Hao
fd5adc15ff
Use the new child specification format in DynamicSupervisor docs
...
Since `Supervisor.Spec.worker/3` is deprecated (#7244 )
2018-01-22 09:25:31 +01:00
Devon Estes
6edee91eec
Add typespec for Float.ratio/1 ( #7242 )
2018-01-21 17:24:19 +01:00
José Valim
9ef646eed5
Support bitstrings in Collectable
...
Closes #7234
2018-01-21 13:25:11 +01:00
Guilherme Pasqualino
c133bdd7a1
Fix example of "Catching values of any kind" ( #7241 )
...
The code snippet in the session "Catching values of any kind" of the documentation of `try` had wrong indentation, because of that the snippet was wrongly formatted.
2018-01-21 13:19:09 +01:00
José Valim
5dedbed881
Ensure do blocks do not exceed line length on single arguments
...
Closes #7232
2018-01-21 00:53:04 +01:00
José Valim
054f9172fa
Do not track @since attributes while bootstraping
2018-01-20 19:46:43 +01:00
José Valim
219c6cc867
Move unused_vars check to Elixir land
...
This gives us better control over when and how unused variables are printed.
As a result, we are able to emit unused variable warnings in situations
we could not before. This also opens up the way for us to remove a
dependency on erl_lint and track types information, which allows us to
speed up compilation times about 5% and allow us to emit more performant
code in some situations.
2018-01-20 19:45:48 +01:00
José Valim
1233a6f644
Optimize variable merging
2018-01-20 19:42:08 +01:00
José Valim
239db307a2
Merge match_vars and prematch_vars
2018-01-20 19:42:08 +01:00
José Valim
f99bb7c0e5
Process variable versioning on Elixir pass
2018-01-20 19:42:08 +01:00
José Valim
fd149eeb56
Remove file from elixir_erl record
2018-01-20 19:42:08 +01:00
José Valim
1ba04d15d8
Remove export_vars in elixir_erl record
2018-01-20 19:42:08 +01:00
José Valim
113d2c69c9
Remove export_vars from Macro.Env
2018-01-20 19:42:08 +01:00
Devon Estes
212bfae6fd
Add @since attributes for behavior introduced in 1.6 ( #7239 )
2018-01-20 15:12:03 +01:00
Devon Estes
716a3a7cc9
Add @since documentation for 1.4 release ( #7238 )
...
This adds the `@since` attribute, documenting what new functions were
added in the 1.4 release.
2018-01-20 15:04:09 +01:00
Devon Estes
d9625f9a67
Add @since attributes for APIs added in v1.5 ( #7223 )
2018-01-19 23:33:10 +01:00
José Valim
abb929eda4
Format stream_test
2018-01-19 23:32:00 +01:00
José Valim
c38fa49a74
Improve undefined behaviour warning
2018-01-19 12:01:21 +01:00
José Valim
97ff1ed89f
Clarify not in warnings
2018-01-19 11:28:18 +01:00
José Valim
69bee9a472
Support zipping of any collection, closes #7219
2018-01-19 11:22:11 +01:00
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