Commit Graph
7005 Commits
Author SHA1 Message Date
José Valim 29acf2ab09 Update Unicode Syntax.md 2017-12-12 09:40:35 +01:00
Glauber Campinho b99306bb44 Remove multiple clauses warning for default values on bodiless clause (#7092) 2017-12-11 21:38:49 +01:00
José Valim b4aac2d7be Do not indent right-side of pipelines in the formatter (#7103) 2017-12-11 21:07:30 +01:00
José Valim 4d3cbcdaaa Introduce @since as non-warning definition annotation
Partially implements #7099.
2017-12-11 18:22:08 +01:00
José Valim 29e8385409 Fix count_children for Task.Supervisor, closes #7101 2017-12-11 16:13:29 +01:00
José Valim d26181a71d Improve docs for tuples 2017-12-11 12:11:52 +01:00
José Valim 840c995af6 Update locals_tracker.ex comments 2017-12-06 20:10:05 +01:00
José Valim 1fdc792a35 Format locals_tracker.ex 2017-12-06 20:08:45 +01:00
José Valim 74f617399f Use a single table instead of digraph for tracking locals
This reduces the number of spawned ETS tables from 3 to 1
per local tracker and also removes the need for a separate
process.

Closes #7091.
2017-12-06 19:49:54 +01:00
Seivan Heidari 102d22a8f1 State argument on Node should be documented (#7089) 2017-12-06 13:00:50 +01:00
José Valim 50f5edf024 Remove unecessary header 2017-12-06 12:09:37 +01:00
José Valim c063093d32 Inspect tuples closer to the formatter, closes #6509 2017-12-06 12:01:48 +01:00
José Valim b3964709b3 Properly format DateTime error message 2017-12-05 19:30:29 +01:00
Ian Duggan afbf168f50 Fix some language in the docs for :bind_quoted (#7079) 2017-12-04 11:17:12 +01:00
José Valim a2a1f3d9e7 More examples and rationale behind child_spec/1 2017-12-04 11:03:52 +01:00
Kyoko KADOWAKI db85115a1f Fix the documentation for Dynamic Supervisor (#7086) 2017-12-03 18:54:26 -08:00
Donald Little 3086b68636 Show UTF-8 BOM on inspected strings (#7085) 2017-12-03 14:04:52 +01:00
Glauber Campinho 25dc8d8d4f Move boolean checks optimizations to Kernel (#7071) 2017-11-30 00:29:54 -02:00
Dave Lucia 7df5a4875c Document multi clause anonymous functions (#7076) 2017-11-30 00:28:35 -02:00
Michał Muskała 0dc57cb207 Make Exception.blame/3 extensible (#7075)
Provide an optional callback for exception: blame/2 that can be used to
augment the exceptions with some additional data that requires expensive
computation and shouldn't be done in every place, for example,
FunctionClauseError that will look up the clauses in the .beam file.
2017-11-29 18:54:27 -02:00
Dave Lucia 7e161b56cb Explain bare expression behavior in with docs (#7067) 2017-11-28 13:34:36 -02:00
Glauber Campinho e12a76eca9 Translate clauses for boolean check (#7069)
Warnings for unsafe variable on boolean checks stopped working after #7015 because
variables of the right clause are unbound on the left clause.

Fixes #7044
2017-11-28 11:56:13 -02:00
Wojtek Mach 0115edb43d Change Date.range/2 to only accept dates (#7061) 2017-11-26 12:55:18 -02:00
James Fish 9a65cbc082 Do not raise on non-integer values in is_odd/is_even (#7063) 2017-11-26 12:54:37 -02:00
Andrea Leopardi ee9e53b273 Add OTP compatibility table to the "Compatibility and Deprecations" page (#7057) 2017-11-23 01:19:19 +01:00
José Valim eee39ccdf9 Format lib/elixir/lib/file.ex 2017-11-22 08:55:48 -02:00
Ivan Kozik 47a3b0897d Clarify File.exists? behavior for dangling symlinks (#7056) 2017-11-22 01:51:06 -02:00
Aleksei Magusev 5e8e6f9ef2 Use "ISO 8601" spelling in docs 2017-11-21 23:27:22 +01:00
Aleksei Magusev fb2d25516f Consider microseconds in maximum possible Calendar.ISO datetime (#7055) 2017-11-21 23:18:43 +01:00
José Valim ce4e0099e2 Properly take "do" into account on line breaks, closes #7052 2017-11-21 14:54:42 -02:00
José Valim 6915de35a6 Attempt to soft_purge modules, closes #7047 2017-11-21 13:57:52 -02:00
Kip Cole bbd1db9be7 Simplify Calendar.truncate/2 precision check (#7051) 2017-11-21 10:11:40 +01:00
Josh Price 80a8591896 Update docs for DateTime.compare/2 (#7048)
Add missing `the` and make the references to UTC and Standard offsets consistent with the other docs.
2017-11-20 13:48:21 -02:00
Eric Meadows-Jönsson d8a533d19f assert_receive should expand in match context (#7042)
Closes #7041.
2017-11-19 07:24:25 -02:00
jgmchan 882c2bdb24 Show better error if an anonymous function has default arguments 2017-11-16 13:53:28 -02:00
Glauber Campinho 96fcc7e2cc Remove dialyzer warnings from else in with clauses (#7031)
Add generated: true to guard clauses from else in with clauses

Resolves #6426
2017-11-15 20:53:57 +01:00
Glauber Campinho 9aeafeefbd Warn duplicate definitions in macros (#7037)
Closes #6637
2017-11-15 20:52:28 +01:00
Eric Meadows-Jönsson 1303d09f61 Fix precedence of bitwise XOR (^^^) in formatter (#7036)
Closes #7034.
2017-11-15 19:53:20 +01:00
Glauber Campinho eb0891b94b Fix @impl warnings with default arguments (#7028) 2017-11-15 12:04:23 +01:00
José Valim d0e9fd38f8 Document and use new uniq: true flag when appropriate 2017-11-13 23:23:55 +01:00
Glauber Campinho 505c10e474 Support uniq: true in for comprehensions (#7020) 2017-11-13 23:00:53 +01:00
Francesco Ceccon 802da56e1d Fix spec of Map.get_and_update!/3 (#7021) 2017-11-10 22:43:16 +01:00
José Valim 6d1deb2032 Migrate Task.Supervisor to DynamicSupervisor
This means Task.Supervisor now supports max_children
and the restart and shutdown value should now be given
per task and not per supervisor.
2017-11-10 15:02:12 +01:00
José Valim 7f8db39ce2 Add DynamicSupervisor (#7006) 2017-11-09 22:14:26 +01:00
José Valim 432e9114b1 Ensure we track behaviours at compile time 2017-11-09 22:13:58 +01:00
José Valim 1fd0f1d81c Add notes and TODOs to variable handling 2017-11-09 18:08:08 +01:00
Michał Muskała c6772ee2c8 Move andalso and orelse expansion to the erl pass (#7015)
Since they modify the AST the correct place for the transformation is not the
macro expansion like today, but rather the erlang pass.

A note for people running git blame:

This transformation was done in the first place to correct the error that is
raised by `erlang:andalso/2` and `erlang:orelse/2` in case the first argument
is not a boolean. The rewrite changes it from `:badarg` into
`{:badbool, op, value}`. The inlining of both functions into a case would be
done anyway in the erlang compiler.
2017-11-09 14:24:48 +01:00
José Valim 9a5c82334b Clear proxy variables, closes #6988 2017-11-08 13:51:41 +01:00
Raphaël Lustin 3de8710217 Add truncate to Time, DateTime and NaiveDateTime (#7010)
Fixes #6997
2017-11-08 13:45:44 +01:00
Wojtek Mach efc5754d40 Improve typespecs for Date 2017-11-08 11:36:49 +01:00