Commit Graph
10563 Commits
Author SHA1 Message Date
José Valim 2a97e7e0fb Initial getting started version 2023-07-05 18:24:04 +02:00
Andrea Leopardi e8409fe8fb Polish some anti-patterns in the guides 2023-07-05 10:54:03 +02:00
Andrea Leopardi 4a9c11def4 Use <h4> titles in anti-patterns guides 2023-07-05 10:42:09 +02:00
Andrea Leopardi a446fcc95c Clean up some process-related anti-patterns 2023-07-05 09:34:22 +02:00
Andrea Leopardi 8e31412bae De-indent anti-pattern guides (#12755) 2023-07-05 09:25:11 +02:00
José Valim 9bdbcbb7f9 Move meta-programming to the bottom 2023-07-05 09:23:14 +02:00
José Valim 189dbcec67 use instead of import + nutrition facts (anti-patterns) 2023-07-05 09:13:42 +02:00
Andrea Leopardi e785d86095 Move meta-programming guide here from elixir-lang.org (#12750) 2023-07-05 08:54:47 +02:00
José Valim d0d80aee53 Apply changes and additional remarks to anti-pattern 2023-07-05 08:45:10 +02:00
Lucas Francisco da Matta Vegi e27dd766ba "Code organization by process" and "Unsupervised processes" (Anti-pattern documentation) (#12754) 2023-07-05 08:27:01 +02:00
Lucas Francisco da Matta Vegi 0d76145e1b Add "Working with invalid data" (Anti-pattern documentation) (#12753) 2023-07-04 21:06:38 +02:00
José Valim 51830c13a1 Provide structure for anti-patterns (#12748) 2023-07-04 20:40:00 +02:00
José Valim 4895540a32 Consistent casing in titles 2023-07-04 19:06:18 +02:00
Andrea Leopardi 0843b401b0 Document almost all remaining stdlib exceptions 2023-07-04 18:56:27 +02:00
Andrea Leopardi 2ab9047d12 Document more exceptions 2023-07-04 16:56:34 +02:00
Andrea Leopardi 9382c83d33 Avoid Kernel.SpecialForms when linking Kernel 2023-07-04 16:52:19 +02:00
José Valim 6909684d6b Create a new references section in the sidebar 2023-07-03 20:47:27 +02:00
José Valim 56098b98db Only include location in diagnostic when precise 2023-07-03 17:55:27 +02:00
Andrea Leopardi d4cbba0416 Add docs to more stdlib exceptions (#12739) 2023-07-03 16:36:50 +02:00
Jean Klingler 1fcdc52854 Clarify that Code.with_diagnostics/2 does not rescue (#12742) 2023-07-02 21:56:48 +09:00
Vinícius Müller f60d54bbc1 Show snippets on additional diagnostics printing (#12725) 2023-07-02 14:29:41 +02:00
José Valim cd5f45b1c6 Add smoke tests for -e/--eval (#12743) 2023-07-02 11:04:11 +02:00
Andrea Leopardi 9b74eceb79 Add more documentation for stdlib exceptions 2023-07-01 10:29:19 +02:00
Andrea Leopardi 0700c8b780 Make some fields of exceptions public (#12735)
In particular, for FunctionClauseError and UndefinedFunctionError.
2023-07-01 09:03:25 +02:00
José Valim a65dae971f Consider surround context until end whenever possible 2023-06-30 15:16:04 +02:00
Vinícius Müller 99785cc16b Improve File.ls/1 docs (#12732) 2023-06-29 16:58:39 +02:00
Benjamin Milde 11cfb574c7 Generalize description of multiple matching variables in the same pattern (#12722) 2023-06-27 15:03:38 +02:00
José Valim 96996cef7d Mention Erlang's :math module in Float 2023-06-27 09:13:13 +02:00
Vinícius Müller 79c90bf8eb Report correct position for duplicate struct fields diagnostic (#12718) 2023-06-26 21:56:30 +03:00
Vinícius Müller 384ca45a16 Fix infinite recursion in get_file_line (#12714) 2023-06-26 11:38:11 +03:00
José Valim 7b67dd4553 Remove trailing space and trailing newlines in snippets 2023-06-25 20:04:11 +02:00
Vinícius Müller 2e87bc8385 Align error snippet with stacktrace on single digit lines (#12709) 2023-06-25 19:46:24 +02:00
Jean Klingler 88d6436a39 Refactoring: use recursion instead of building list (#12711) 2023-06-25 16:54:56 +09:00
Christopher Keele 663ea2e39b Mention on: capture reference in Regex.split/{2..3} (#12710) 2023-06-25 09:50:43 +02:00
Vinícius Müller 86813b4ba6 Reword grouped warnings message (#12708) 2023-06-24 23:59:42 +02:00
Vinícius Müller 774d10b83e Improve compiler warnings visuals (#12683) 2023-06-24 22:18:37 +02:00
José Valim 1a04a8216d Do not add extra newlines after hints 2023-06-24 17:05:50 +02:00
Jean Klingler a7edd6ea47 Parser honors :static_atoms_encoder for multi-letter sigils (#12706)
* Unify sigil token generation

* Parser honors :static_atoms_encoder for multi-letter sigils

* Remove chars from token, reverse engineer from atom
2023-06-24 18:29:24 +09:00
Aaron Tinio 72044e8ef7 Provide compile_env tip that fixes the error across all environments (#12702) 2023-06-23 09:02:22 +02:00
José Valim 6620b48fd1 Fix dbg on Erlang/OTP 25- (#12697) 2023-06-22 20:53:17 +02:00
José Valim 698fcdb82c Update CHANGELOG 2023-06-20 16:33:50 +02:00
Vinícius Müller 07ff933f78 Assert on compiler warnings content rather than format (#12679) 2023-06-20 12:17:51 +02:00
José Valim 47a5e30155 Make IO.binwrite consistent with IO.write 2023-06-19 15:27:12 +02:00
José Valim fcc743c47f Simplify whitespace prunning 2023-06-19 13:29:54 +02:00
Vinícius Müller 0da6662b5e Improvide diagnostics on lexer exceptions (#12670) 2023-06-19 11:07:59 +02:00
Vinícius Müller b7d3a29db8 Assert on error message rather than format (#12675) 2023-06-15 20:06:10 +02:00
sabiwara 44c18a3894 Consistently use backticks when documenting boolean returns (#12671) 2023-06-14 19:25:55 -04:00
Vinícius Müller cba29235ab Improve @file attribute docs (#12668) 2023-06-14 13:10:01 +02:00
sabiwara 2f4a3138cd Fix slicing MapSet with stepped range (#12667) 2023-06-14 12:03:45 +02:00
sabiwara 666c26a789 Add missing typespec for Code.eval_quoted_with_env/4 (#12665) 2023-06-14 18:04:00 +09:00