Andrea Leopardi
48e914dd3a
Hard-deprecate some things for 1.7 ( #7139 )
2017-12-24 21:32:56 +01:00
José Valim
ed98604dc3
Deprecate Range.range? in favor of pattern matching
2017-10-17 19:54:03 +02:00
José Valim
a81a17b3b0
Deprecate Keyword.replace/3 and Map.replace/3
...
`replace!` was introduced to mirror `update!` but without the
anonymous function. Given there is no `update`, we should not
introduce a `replace` until we are sure of the semantics we
want for update.
2017-10-04 13:43:07 +02:00
José Valim
0b0ab9f8ef
Add Code.Identifier to hold shared identifier logic throughout Elixir
2017-08-22 13:22:26 +02:00
José Valim
43a4720b1a
Start v1.6.0-dev
2017-06-25 13:49:50 +02:00
José Valim
978b8450df
Deprecate Enum.filter_map/Stream.filter_map
2017-05-28 17:06:58 +02:00
Eksperimental
ad167e2e95
Sort deprecation clauses alphabetically in :elixir_dispatch ( #6135 )
2017-05-23 10:01:07 +02:00
José Valim
07d40af48f
Add Exception.blame/3 and Exception.blame_mfa/3 ( #6127 )
2017-05-22 23:58:14 +02:00
Eksperimental
c8d6fb0054
Deprecation of "strip" functions in String module ( #6128 )
2017-05-22 10:48:01 +02:00
Michał Muskała
170019c869
Make sure System.stracktrace is first thing done in the handler ( #6119 )
...
If any of the functions catches an error, we'd get a wrong trace
2017-05-18 12:27:17 +02:00
Jeff Kreeftmeijer
efa05882d0
Restore (deprecated) Integer.to_char_list/2 ( #5928 )
2017-03-25 14:05:54 +01:00
Aleksei Magusev
84b67b5b95
Rename elixir_exp module to elixir_expand
2017-02-19 21:57:50 +01:00
Aleksei Magusev
a729847db6
Rename m/2 helper macro to key/2 in the main header file
2017-02-19 21:56:05 +01:00
José Valim
8e2ebf739b
Split erl and ex passes in elixir_def
2017-02-19 13:01:13 +01:00
José Valim
ff3fc7ef43
Unify local handling in elixir_def
2017-02-18 23:36:30 +01:00
José Valim
152cf2616b
Move case inlining out of Elixir pass
2017-02-16 18:24:25 +01:00
Andrea Leopardi
b6e1beb9b3
Hard deprecate GenEvent and provide alternatives in its docs ( #5705 )
2017-01-26 23:56:41 +01:00
Andrea Leopardi
dc995c2a95
Fix a deprecation in elixir_dispatch
2016-12-03 17:51:19 +01:00
Andrea Leopardi
0f462ab211
Move a bunch of hard deprecations to elixir_dispatch ( #5524 )
2016-12-03 17:23:58 +01:00
Andrea Leopardi
b25033bb4b
Hard-deprecate the "char_list" spelling ( #5517 )
2016-12-01 21:51:47 +01:00
Andrea Leopardi
69683d1674
Deprecate String.rjust/2,3 and String.ljust/2,3 ( #5516 )
2016-12-01 12:59:43 +01:00
Andrea Leopardi
78eb77148f
Hard-deprecate the Set module ( #5513 )
...
It will be removed in Elixir 2.0.
2016-12-01 10:28:09 +01:00
Andrea Leopardi
5633571372
Hard-deprecate String.*strip/1,2 functions ( #5508 )
2016-12-01 10:16:49 +01:00
José Valim
34052cfca0
Emit compilation warnings for HashDict, HashSet and Dict
2016-07-23 12:31:12 +02:00
José Valim
584f49f88c
Do not attempt to load modules that have not been required, closes #4900
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-06-29 01:21:53 +01:00
José Valim
5f34ad6dc7
Remove elixir_counter in favor of unique_integer
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-06-15 15:25:28 +02:00
José Valim
c87a7dbf26
Add @enforce_keys to defstruct, defexception and friends
2016-05-26 13:26:58 +02:00
Eric Entin
b15d641e42
Add mix xref --callers M.f/a ( #4683 )
2016-05-25 21:53:42 +02:00
Eric Entin
0395bac1c1
Warn for remote calls that cannot be resolved at compile time ( #4639 )
2016-05-22 11:20:45 +02:00
eksperimental
4ceb41e71b
Formmating: Add white space around vertical bar ( #4507 )
2016-04-25 00:55:49 +02:00
Wojtek Mach
743e8c7ed1
Track {module, function, arity} imports and warn on unused ones
...
Example:
Say, there's following file:
# example.exs
import String, only: [upcase: 1, downcase: 1]
import Enum
IO.puts upcase("Hello")
Before this patch:
# $ elixir example.exs
# HELLO
# warning.exs:2: warning: unused import Enum
After this patch:
# $ elixir example.exs
# HELLO
# example.exs:1: warning: unused import String.downcase/1
# example.exs:2: warning: unused import Enum
2016-02-28 19:53:02 +01:00
José Valim
4bce6d063a
Keep metadata when rewriting assertions
2015-08-24 00:19:00 +02:00
José Valim
80fd98f01a
Streamline aliases and imports in lexical tracker
...
Aliases should not mark nodes as compile or runtime
since it receives the alias to be expanded. The
expanded alias is always called later though as a
remote dispatch.
Imports should always mark nodes as compile time,
since they are compile time dependencies.
Finally, ensure compile nodes have higher priority
over runtime ones.
2015-07-22 09:59:31 +02:00
José Valim
d25d7046e5
Split compile and runtime in lexical tracker
2015-07-21 23:28:07 +02:00
José Valim
7642f97691
Ensure we quote proper file on exceptions
2015-04-02 18:37:56 +02:00
eksperimental
61675c3ea8
Add space after comma: Format consistently
2015-03-17 22:55:27 +07:00
José Valim
d31c12100a
Refactor and add new rewrite rules
2014-10-06 14:55:38 +02:00
José Valim
7313d26720
Remove deprecated branches
2014-09-04 13:58:58 +02:00
José Valim
1ca451f779
Normalize is_guard checks
2014-08-27 15:28:31 -04:00
José Valim
1565ec7658
Update CHANGELOG
2014-08-18 16:43:17 -04:00
José Valim
c04e13169f
Deprecate Collectable.empty and Enum.traverse
...
The current implementation has three issues:
1. It is slow as we can't reuse the data structure but rather
build a new one from scratch
2. Due to 1., trees can't be traversed
3. empty/1 is unable to deal with resources
2014-08-16 15:46:58 +02:00
José Valim
dbf205b311
Deprecate Module.function/3
2014-08-07 20:00:57 +02:00
José Valim
0e0bb1c2a7
Do not raise conflicts on imports used from quotes, closes #2589
2014-08-07 18:09:19 +02:00
José Valim
6a6ba9f50d
Remove deprecated code
2014-08-02 22:35:57 +02:00
José Valim
58ca3401e4
Deprecate IO.ANSI.terminal? and tidy up colors
2014-07-31 13:54:08 +02:00
José Valim
4e7ba9d598
Deprecate IO.ANSI.escape/2 and IO.ANSI.escape_fragment/2
2014-07-30 13:14:53 +02:00
José Valim
c42fe88dcc
Provide Inspect.Algebra.format/2 that returns iodata
2014-07-19 13:32:45 +02:00
José Valim
058b157b36
Remove deprecated features and deprecate soft ones
2014-07-12 16:23:17 +02:00
Eric Meadows-Jönsson
c295ee50de
Allow expansion of local macros via Macro.expand/2
2014-07-11 20:35:35 +02:00
José Valim
8e1f7fddca
Always return ok from tracking functions
2014-07-05 13:21:59 +02:00