José Valim
d9a93c47ca
Solve bootstrap issues with @doc
2015-10-14 18:25:20 +02:00
José Valim
53c85df69a
Merge pull request #3793 from danielberkompas/3707-warn-on-redefined-docs
...
[#3707 ] Warn when @attributes are redefined
2015-10-14 17:56:22 +02:00
Aleksei Magusev
f7069342c0
Make workaround for dialyzer warnings suppression on raise
2015-10-14 15:40:20 +02:00
José Valim
247761b0c7
Silence dialyzer warnings on raise
2015-10-14 15:17:15 +02:00
José Valim
d1b785821c
Add note to deprecate size functions in Map / Keyword
2015-10-13 23:20:50 +02:00
Joshua Wood
c4fe36275b
Document limits of Float.parse/1.
...
This commit clarifies the documentation for `Float.parse/1` as well as
adds test assertions to demonstrate the limits enforced by erlang/IEEE
754-1985 double precision floats. See #3862 for more context.
2015-10-13 08:37:05 -07:00
José Valim
71e5acc0b7
Ensure no warnings on rewrites
2015-10-11 12:55:59 -05:00
José Valim
2aad447cbf
Remove old dialyzer test file
2015-10-11 12:40:02 -05:00
José Valim
8ac8a4c2e8
Clean up generated code
2015-10-11 12:32:29 -05:00
James Fish
a637caffc8
Add dialyzer tests for generated AST
2015-10-11 12:06:12 -05:00
James Fish
a7f89b091f
Fix dialyzer warnings for remote calls
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2015-10-11 12:03:36 -05:00
José Valim
3ccd5137ef
Add generated annotations
2015-10-11 12:02:47 -05:00
José Valim
c859e49199
Update CHANGELOG and remove deprecated code
2015-10-07 22:27:31 -05:00
Aleksei Magusev
17b3df271d
Fix bitstring splicing for bytes type modifier
2015-10-07 00:30:41 +02:00
José Valim
9c86f5b167
Solve bootstrap issues on defdelegate
2015-10-06 11:57:00 -05:00
Daniel Marin
fb8ac4d85c
Add default docs for delegate methods
2015-10-06 15:45:41 +01:00
Ryan Scheel (Havvy)
14ac3c5e97
Transplant Behaviour module docs to @behaviour
...
Most of these docs are from the 1.0 Behaviour module docs, but
those were seemingly lost at some point during the switch to
@callback. I'm not sure whether it is better to put them on
@behaviour or @callback, but I placed them on @behaviour. I'd
rather see a "Behaviour" page that has this information, not
just something randomly stuck in Module or Kernel.Typespec.
2015-10-06 02:20:52 +00:00
Eric Meadows-Jönsson
4bbd3b0bbb
inspect invalid ANSI sequences
2015-10-05 17:34:15 -05:00
Baris Balic
70e0b24536
List as_boolean() under Kernel.Typespec built-ins.
2015-10-05 14:35:27 -05:00
José Valim
9bcd8439e7
Tidy up GenServer docs
2015-10-04 15:58:34 -05:00
José Valim
40fff43ea0
Merge pull request #3832 from ma2gedev/macro-traverse
...
Add `Macro.traverse/4` pre/post-order traversal at the same time
2015-10-04 15:28:26 -05:00
Takayuki Matsubara
7e1073ec49
Add Macro.traverse/4 pre/post-order traversal at the same time
...
Almost is like the `Macro.prewalk/3` and `Macro.postwalk/3` but
pre/post-order traversal at the same time.
2015-10-05 00:06:21 +09:00
José Valim
f6b2ddd81b
Merge pull request #3805 from endersstocker/add-string-normalize-nfc
...
Add NFC support to String.normalize/2
2015-10-04 08:55:34 -05:00
José Valim
19a8e766a7
Merge pull request #3827 from lexmag/omit-else
...
Omit `else` option in `if` and `unless` clauses if it returns `nil`
2015-10-04 08:40:41 -05:00
javimolla
3eeb903534
fix3761: Add more info about :via registry to GenServer
2015-10-04 11:25:24 +02:00
Aleksei Magusev
d682c47bf9
Omit else option in if and unless clauses if it returns nil
2015-10-03 21:07:19 +02:00
Bryan Endersstocker
07fedf66d0
Add NFC support to String.normalize/2
2015-10-03 11:08:55 -04:00
Chris Maddox
ddfcc60505
Update special_forms.ex
...
I a word
2015-10-03 00:13:47 -05:00
José Valim
b933d84b05
Merge pull request #3817 from uDude/master
...
Fixed typo/grammar in Supervisor @doc
2015-10-02 16:53:18 -05:00
uDude
6239bf32db
Fixed a typo in @doc.
2015-10-02 15:19:22 -06:00
René Föhring
02b2bd2fc0
Fix small typo in docs for File.rename/2
2015-10-02 21:49:20 +02:00
CrowdHailer
f2cd34f1a8
use macro to show code sample in error message
2015-10-01 16:04:35 +01:00
José Valim
ca5a9060ef
Merge pull request #3810 from lexmag/optimize-keyword-new
...
Optimize `Keyword.new/2` function
2015-10-01 16:38:39 +02:00
José Valim
f8e2332db9
Merge pull request #3811 from michalmuskala/optimize_map
...
Optimize Enum.map/2 for lists
2015-10-01 16:28:32 +02:00
Ryan Bigg
0cc63df80d
Add demonstration for Enum.shuffle's randomness
2015-10-01 19:16:59 +10:00
Michal Muskala
ed66646187
Optimize Enum.map/2 for lists
...
Out of 3 options:
* using for comprehensions
* using explicit recursion with accumulator
* using simple consing
The third option seems to be the fastest. That's also the one that
is used by :lists.map/2
2015-10-01 00:56:07 +02:00
Aleksei Magusev
3f7f074494
Optimize Keyword.new/2 function
2015-10-01 00:17:24 +02:00
Luper Rouch
dabcb4c71f
Fix default value of :time option in File.Stat docs
2015-09-30 08:30:12 +02:00
eksperimental
0d3d410beb
Enum: rename variable in priv. func.
...
rename variable according to changes introduced in commit ced1095e17
2015-09-30 02:21:22 +07:00
Daniel Berkompas
50e37d75e0
[ #3707 ] Warn when @attributes are redefined
...
Attributes such as @doc and @moduledoc should emit warnings when they
are redefined. For example:
```
@doc “first”
@doc “second”
```
This should emit a warning to the user, because the doc tag will be
overwritten with the value “second”.
See #3707 for more details.
2015-09-29 11:48:05 -07:00
José Valim
c0c6983363
Print byte information on base decoding errors
2015-09-29 15:21:50 +02:00
José Valim
f7654bf66a
Ensure we print unicode codepoints on errors, closes #3804
2015-09-29 15:03:55 +02:00
José Valim
5f36e0b33e
Merge pull request #3796 from radar/master
...
Add an example for IO.gets
2015-09-29 13:58:59 +02:00
Ryan Bigg
4d5a6bed63
Add an example for IO.gets
2015-09-29 07:58:17 -04:00
José Valim
efa505b38a
Ensure we keep ordering and last properties in keyword
2015-09-29 13:27:55 +02:00
Ryan Scheel (Havvy)
b268291c8c
Add comments to the first GenEvent example.
2015-09-29 11:42:42 +02:00
José Valim
30281d149a
Fix failing tests
2015-09-28 22:57:32 +02:00
José Valim
81503c0a91
Merge pull request #3792 from eksperimental/enum_rephrase_terminology
...
Enum: several fixes
2015-09-28 22:35:19 +02:00
eksperimental
ced1095e17
Enum - Several fixes
...
- Updates the terminology: what it was refereed as collection is now
Enumerable and collectable
- Text wrap to 72 chars
- Backticks added to enumerable and other variables.
- Specs fixed
- Summaries improved
- Try to avoid the use of what it returns in the summary.
- Documentation for several functions corrected and improved, as well as examples.
- Some variables in functions renamed.
- I have changed the use of value when it actually refered to elements in the
Enumerable to element, but i had kept it when it was used for tuples,
refering to key - value, even though value could be an enumerable.
2015-09-29 03:33:25 +07:00
CrowdHailer
74cbda6d8e
removed obsolete type option from the GenEvent handler type
2015-09-28 13:20:14 +01:00