Commit Graph
133 Commits
Author SHA1 Message Date
José Valim 93cee4d85a Raise nice error message if attempting to define a module that is being defined, closes #373 2012-06-28 17:00:53 +02:00
José Valim 119a87b2ab Move away from packages since they don't work as expected with embedded mode 2012-06-18 12:28:09 +02:00
José Valim 86372c11c4 Deprecate add_compile_callback in favor of the attributes API 2012-06-11 12:19:23 +02:00
José Valim 610d34c314 Document line option for quote, support line: :keep, closes #364 2012-06-11 11:43:45 +02:00
José Valim d8dd801ec8 Solve inconsistency with in not allowed inside some exprs 2012-06-09 12:24:52 +02:00
José Valim 272956067b Fix precedence of inlist and inbits generators with match 2012-06-09 12:24:52 +02:00
José Valim 037492b7a2 Move Typespec to Elixir.Typespec, ensure it works with @spec and friends 2012-06-08 16:06:37 +02:00
José Valim 192098ce3c Make assert smarted deprecating unecessary counter-parts 2012-06-08 14:16:17 +02:00
José Valim bd9a72f748 Allow quoted calls 2012-06-07 09:05:25 +02:00
José Valim e51bc9e5aa Change comprehensions syntax to be more compatible with Erlang behavior, closes #335 2012-06-06 12:27:28 +02:00
José Valim 67a906083e Better exceptions in cond, closes #337 2012-06-05 20:16:44 +02:00
José Valim 8f8fd13f3b Unify data and attributes 2012-06-05 14:12:36 +02:00
José Valim b959e1d117 Raise an error if an invalid alias is given, closes #316 2012-06-04 12:19:30 +02:00
José Valim 9220637a3c Ensure nice stack trace on compiled callbacks, closes #314 2012-06-01 12:33:21 +02:00
José Valim 9d596a1f39 Add tests to ensure proper stacktrace on macro calls 2012-06-01 11:48:39 +02:00
José Valim c926b7f943 Ensure aliases can be overriden 2012-05-31 13:19:21 +02:00
Rafael Mendonça França a1cb84d2cc Add File.mkdir 2012-05-29 11:33:52 -03:00
José Valim b685ded72d Fix a bug where nested super calls did not propagate properly 2012-05-27 17:58:31 +02:00
José Valim 94e1537ed0 Partials with fn also work with imported funs 2012-05-24 13:37:44 +02:00
José Valim 15ab61bb8b Add partial function application via fn, closes #297 2012-05-24 13:20:22 +02:00
José Valim a22cac102e Clauses out of sync now raises a warning
We also consider the current macro scope before raising
the warning, allowing meta-programming to work without
actually triggering the warning.
2012-05-24 10:58:44 +02:00
José Valim 2a16798210 Ensure in works inside function definitions, closes #298 2012-05-21 12:02:56 +02:00
José Valim 8a3439e6f3 Remove special conditions inside catch 2012-05-18 18:02:56 +02:00
José Valim 52cf46ea96 Support many args in -> exprs 2012-05-18 17:54:15 +02:00
José Valim f9dd6f66a6 Remove function single do: definition syntax 2012-05-13 17:36:54 +02:00
José Valim 53ba7e7e85 Do not allow stab inside stab operators 2012-05-13 16:20:45 +02:00
José Valim e476a5ef0d Stab at new syntax 2012-05-13 15:33:57 +02:00
José Valim 6725347e36 Ensure wrapped erlang exceptions can also be raised from Elixir, closes #283 2012-05-07 18:10:44 +02:00
José Valim 2eb653a594 fix precedence for not x in [], closes #278 2012-05-05 21:39:31 +02:00
José Valim 52eaf6d547 Overridable is no longer a data attribute, but a macro. This allows it to work fine with multi-clauses. 2012-05-02 21:23:25 +02:00
José Valim 1b481fd72a Allow record matching in rescue clauses, closes #238 2012-04-30 13:40:26 +02:00
José Valim b78c27b6af Ensure in with match can be mixed with guards 2012-04-30 12:20:58 +02:00
José Valim 7c7d7bd458 Allow "in" match clauses 2012-04-30 12:07:59 +02:00
José Valim 721972c739 Rename bin comprehension to bit comprehension 2012-04-30 10:54:29 +02:00
José Valim a16becfb94 List and bit comprehensions now expects filters after the when operator 2012-04-30 10:53:53 +02:00
José Valim b620b2ea9a Ensure we don't rescue the wrong exception accidentally 2012-04-26 09:58:16 +02:00
José Valim 5210aa5da8 Now that we have faster load times, get rid of assert_equal 2012-04-26 09:29:21 +02:00
José Valim 929f84f420 Revert removal of assert_equal 2012-04-26 00:31:40 +02:00
José Valim 24d64a871e Get rid of assert_equal 2012-04-25 23:36:02 +02:00
José Valim 9bf24191a6 Convert more files from assert_equal to assert == 2012-04-25 23:12:38 +02:00
José Valim 9a475008ec Get rid of assert_operator, handle it with assert 2012-04-25 20:36:42 +02:00
José Valim b1c38a54c3 Merge atom <-> binary oconversion tests into one file 2012-04-25 15:22:12 +02:00
José Valim 709de252e8 import with except should not add old keys back 2012-04-25 09:34:16 +02:00
José Valim 51bf673d71 Simplify Code API regarding compilation 2012-04-24 13:46:15 +02:00
José Valim 8171c6ceed Ensure a runtime error is raised if a macro is called at runtime 2012-04-23 11:20:46 +02:00
José Valim e612fb7f46 Allow macros to be invoked __MODULE__.macro during compilation 2012-04-22 19:40:45 +02:00
José Valim 279357ac2f Ensure macros that call locals can be invoked locally without failures. 2012-04-22 15:50:24 +02:00
José Valim 4e3d1b26e2 Add support to private macros. 2012-04-22 13:45:28 +02:00
José Valim 5629d5673a Allow macros to be invoked locally. 2012-04-22 13:26:42 +02:00
José Valim 6fdccdb802 Definitions without implementation can specify default clauses. 2012-04-21 14:57:24 +02:00