Commit Graph
789 Commits
Author SHA1 Message Date
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 511345c130 Document File module 2012-05-08 12:33:19 +02:00
José Valim a1f76187d0 Improve docs for dicts and bitwise modules 2012-05-08 10:14:00 +02:00
José Valim b7200c494f Improve documentation for access, chars and inspect protocols as well as their outputs 2012-05-08 09:56:49 +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 280b26a810 Since we now compile to ebin/__MAIN__, remove the need for exbin 2012-05-07 12:25:22 +02:00
José Valim 3cd9e0e1a8 Get rid of List.prepend (as it works the same as ++) 2012-05-07 10:50:23 +02:00
José Valim 10232a1710 Do not care about handling char lists on URI module 2012-05-06 22:07:16 +02:00
José Valim 72b0e5fc14 Return nil in decode_query (according to its docs) and allow dict to be passed as argument 2012-05-06 14:54:58 +02:00
Alexei Sholik e31cca0e9f Improve query parsing
Return a { :error, msg } tuple instead of nil. Better handle some edge
cases.
2012-05-06 15:25:07 +03:00
Alexei Sholik aee124d1ad Handle charlist queries 2012-05-06 15:08:14 +03:00
Alexei Sholik fa9646602f Implement decode_query in URI 2012-05-06 15:08:14 +03:00
José Valim da67254ccc Do not remove blank strings on strip, closes #282
THe previous behavior was wrong, the current behavior
matches Ruby and Perl.
2012-05-06 13:21:12 +02:00
José Valim c7e4cfac96 Merge pull request #281 from elixir-lang/simple_parser
OptionParser.Simple receives aliases
2012-05-05 12:45:38 -07:00
Rafael Mendonça França e9c6431c77 OptionParser.Simple receives aliases 2012-05-05 16:43:57 -03:00
José Valim 2eb653a594 fix precedence for not x in [], closes #278 2012-05-05 21:39:31 +02:00
José Valim dc80ed6c17 Converting to a list should not be part of the enum protocol 2012-05-05 21:35:23 +02:00
José Valim 7301733970 Do not hardcode blocks to use = as marker 2012-05-05 11:29:32 +02:00
José Valim c35019da33 Merge pull request #276 from philss/file_exists
Adding File.exists?
2012-05-04 23:52:10 -07:00
Philip Sampaio 7a6a711635 Changing File.exists? implementation.
Now using file:read_file_info() from Erlang.
2012-05-05 01:57:14 -03:00
José Valim 2c6c7c82b8 Optimize record generation as well (if we can) 2012-05-04 21:34:38 +02:00
José Valim ee72a5a35a Allow function definitions straight from eex 2012-05-04 21:12:55 +02:00
José Valim fba6349275 Ensure paths in tests are also expanded 2012-05-04 11:23:32 +02:00
José Valim 3628576dff Make Enum.split_with behave the same as :lists.splitwith 2012-05-04 10:45:30 +02:00
José Valim 1b1cd6c1d2 Private functions should not appear on docs 2012-05-04 09:56:30 +02:00
Sergey Nartimov 9974d0add9 fix typo in argument name 2012-05-03 16:41:34 +03:00
José Valim 2dbbd24162 Add EEx.SmartEngine that can handle assigns and for loops
This engine is used by default by EEx. We have also added support
to Enum.map_join in order to make the loop implementation easier.
2012-05-03 12:04:33 +02:00
Philip Sampaio 4da2aaaa99 Add File.exists? 2012-05-03 00:46:48 -03:00
Sergey Nartimov a0b5f93410 return a keyword in module.__info__(:compile) 2012-05-02 23:16:12 +03: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 e4f13fc925 Change EEx API to accept a list of options instead of many arguments 2012-05-01 11:32:33 +02:00
José Valim ca7b8c9851 Add keyfind, keymember? and keydelete to List 2012-05-01 11:24:02 +02:00
José Valim cb052bee77 Raise a relevant error message when a non bit string is returned from a bit comprehension, closes #185 2012-04-30 15:58:14 +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 4ba1769fe9 Add Keyword.from_enum and Enum.qsort 2012-04-29 13:54:24 +02:00
José Valim d297d2c768 Rename elixir_kv_block to elixir_kw_block, closes #270 2012-04-29 13:40:52 +02:00
José Valim ecd5821aba The binary matching can take into account bound variables for size 2012-04-29 12:38:37 +02:00
José Valim cd16b601cb Rename URI.url_encode to URI.encode, rely on Binary.Chars protocol for normalization 2012-04-29 12:07:15 +02:00
l4u a0be4df724 Return binary unicode characters in URI.url_decode 2012-04-29 17:07:03 +08:00
l4u 56ebbabe03 Add URI.url_decode 2012-04-29 16:29:20 +08:00
José Valim e583c5c78d Docs and tidy up to Enum protocol 2012-04-28 14:56:50 +02:00
José Valim a3df1b46f6 Clean up and optimize compilation dispatching 2012-04-28 13:28:53 +02:00
José Valim b4cc71a835 Parallel compiler now receives notifications as soon as a module is loaded to reduce lock time and deadlock chances 2012-04-27 14:25:45 +02:00
José Valim 7e8a0b0c58 More improvements to dict, rename Keyword.from_enum to new to behave as Dict 2012-04-26 15:13:21 +02:00