Eric Entin
93394ce960
Replace ets table in Kernel.LexicalTracker with a map ( #4651 )
...
* Replace ets table in Kernel.LexicalTracker with a map
* Remove :mode and move remotes and unused into the server
2016-05-20 00:46:32 +02:00
José Valim
793e657eaa
Store function definitions and clauses in the same table
2016-05-19 13:23:19 +02:00
Andrea Leopardi
4499b132de
Use a map to pass around in Kernel.ParallelCompiler.spawn_compilers ( #4643 )
2016-05-19 10:37:41 +02:00
José Valim
7d5233d3b1
Add group_by/3 with a value fun
2016-05-18 22:33:42 +02:00
José Valim
406336145b
Update CHANGELOG and docs
2016-05-18 14:53:35 +02:00
José Valim
478ec42778
Use the shortest possible representation when printing floats, closes #3413
2016-05-18 14:38:44 +02:00
José Valim
b38ace0a79
Tidy up LexicalTracker
2016-05-18 08:42:33 +02:00
eksperimental
94aee777e8
Minor corrections to Writing Documentation
2016-05-17 23:19:31 +07:00
José Valim
e774b06f38
Tidy up paragraph and move from appear to listed
2016-05-17 16:18:00 +02:00
Xavier Noria
0bfaacfd87
Reword the section about hiding docs in "Writing Documentation" ( #4634 )
...
[ci skip]
2016-05-17 15:16:35 +02:00
Louis Pilfold
91005d7779
Correct calendar typo
2016-05-17 00:40:21 +01:00
José Valim
002dce0f70
Improve docs for maps
2016-05-16 22:58:44 +02:00
Xavier Noria
8ece38d420
minor fixes in "Writing Documentation" [ci skip] ( #4632 )
2016-05-16 18:58:01 +02:00
Tobias Pfeiffer
914a409712
Rephrase some documentation Enum.max* and Enum.min*
...
The documentation mentioned "biggest" and "smallest" element,
but the meaning may be better conveyed by using "maximal"
and "minimal" instead (since these function start with max* and min*
anyways).
2016-05-16 17:14:44 +02:00
José Valim
4f47f03707
Improve unsafe vars warning
2016-05-16 13:40:46 +02:00
Aleksei Magusev
92306f4e81
Correct IO.warn/1,2 examples
2016-05-16 00:38:32 +02:00
Aleksei Magusev
d22e456047
Improve warning output ( #4631 )
2016-05-16 00:10:51 +02:00
José Valim
f041c79df8
Add refute back to warning test
2016-05-15 20:57:33 +02:00
José Valim
b79b041fad
Improve ambiguous pipe message
2016-05-15 20:46:37 +02:00
José Valim
7cac73a095
Unify warning calls
2016-05-15 20:34:29 +02:00
Andrea Leopardi
514261fa91
Add a --long-compilation-threshold option to "mix compile" ( #4628 )
...
This option changes the value of the `:long_compilation_threshold`
option in `Kernel.ParallelCompiler.files/2`.
2016-05-15 19:17:34 +02:00
Aleksei Magusev
7f53048cb5
Enrich tests for alias, import and require return
2016-05-15 18:32:35 +02:00
José Valim
be715bfe36
Add assertions that match on the imported value
2016-05-15 17:55:29 +02:00
Adán Sánchez de Pedro Crespo
b0261c7b83
Make lexicals (alias, import and require) return the given module(s) instead of nil ( #4629 )
...
* Make lexicals return module name instead of nil
* Update tests
2016-05-15 17:53:10 +02:00
Andrea Leopardi
ed8aac2fbb
Rename :each_timeout and :timeout compiler options ( #4627 )
...
I renamed those to `:each_long_compilation` and
`:long_compilation_threshold`.
2016-05-15 12:51:28 +02:00
José Valim
504462b21b
use timeout and each_timeout
2016-05-15 11:43:59 +02:00
Andrea Leopardi
707f44e38e
Add a callback for long-to-compile files in Kernel.ParallelCompiler ( #4626 )
...
Add the :each_waiting and :waiting_timeout options to
Kernel.ParallelCompiler.files/2. These option control what to do when a
file it's taking longer than :waiting_timeout to compile: in such cases,
the :each_waiting function is called with that file as its argument.
2016-05-15 11:38:32 +02:00
José Valim
38b784927f
Improve elixirc options and use upcoming waiting mode
2016-05-15 09:23:34 +02:00
Eric Entin
61b7c6a196
Style fix for try ... after docs ( #4625 )
2016-05-14 21:56:32 +02:00
Aleksei Magusev
fccbe29135
Merge open_defaults/2 and write_defaults/1 to normalize_modes/2 in File
2016-05-14 17:21:31 +02:00
Aleksei Magusev
389d5b70cd
Make IOTest sync since we're capturing stderr now
2016-05-14 01:24:58 +02:00
Aleksei Magusev
f3ed399f2f
Tidy up IO.warn/1,2
2016-05-14 01:13:08 +02:00
Aleksei Magusev
5e531cbc35
Improve guards definition in {Enum,Stream}.chunk/3,4
2016-05-14 01:09:42 +02:00
Andrea Leopardi
6b0c38d05f
Define Application as a behaviour and document its callbacks ( #4621 )
2016-05-13 18:51:58 +02:00
Louis Pilfold
d722304c6b
IO.warn to unify warnings ( #4615 )
...
* IO.warn/1 function
* Use IO.warn/1 instead of IO.write :stderr
* Add stack trace printing to IO.warn
* Remove manual stacktrace concatting from IO.warn calls
* Remove double trailing newline from IO.warn
2016-05-13 14:12:01 +02:00
José Valim
c5c7ca9aeb
Fixes for Erlang 19 RC
2016-05-13 14:07:08 +02:00
eksperimental
9066f9e47c
File.open/2: complete list of modes ( #4600 )
2016-05-13 09:30:56 +02:00
Miles Starkenburg
551a9ac14e
Fix nfd normalization bug ( #4606 )
...
* Fix nfd normalization bug
* Change String.normalize return type to binary
2016-05-13 09:28:50 +02:00
Tobias Pfeiffer
e1dcecbec4
Clarify that flat_map only flattens one level deep ( #4610 )
...
* Clarify that flat_map only flattens one level deep
* got me by surprise today as I always thought it'd do the
equivalent of List.flatten/1 so seemed nice to get some
examples
* Clear up meaning of flatten in Enumerable.flat_map_reduce
2016-05-13 09:24:23 +02:00
eksperimental
9acfe97661
Replace "thing" arg with more appropriate "term" arg ( #4607 )
2016-05-13 09:23:48 +02:00
Tobias Pfeiffer
84e38fb0a1
Keep naming it enumerable for documentation consistency ( #4611 )
2016-05-13 09:23:34 +02:00
Ben Wilson
58035e92bc
Ensure args 2 and 3 to Enum,Stream.chunk/3,4 are integers ( #4614 )
2016-05-13 09:23:08 +02:00
Erol Fornoles
f096f81023
Fix typo in Algebra doc ( #4616 )
2016-05-13 08:58:15 +02:00
José Valim
621af0dae5
Document the blocking nature of timer/interval
2016-05-13 08:42:29 +02:00
Myron Marston
7b8213affa
Add section about after to special forms docs. ( #4599 )
...
Clarify that `after` in `try` is not guaranteed to run because an exit signal can abruptly stop the process.
See https://groups.google.com/forum/#!topic/elixir-lang-core/NWvFwUWo2QQ for background conversation.
2016-05-11 18:18:34 +01:00
José Valim
b252a5997b
Merge pull request #4592 from eksperimental/integer_args
...
Integer improvements
2016-05-11 00:01:09 +02:00
Erol Fornoles
4283671410
Fix typo in Keyword doc ( #4603 )
2016-05-10 23:54:54 +02:00
eksperimental
53f1851142
Remove 'is_integer/1' from guard when is used in combination with 'in/2'
2016-05-10 10:09:00 +07:00
Aleksei Magusev
9d03be21b9
Do not emit warning when "with" clause always matches ( #4597 )
2016-05-09 20:06:33 +02:00
eksperimental
ba75fc487f
Integers: Tests added
2016-05-09 21:47:59 +07:00