Commit Graph
10580 Commits
Author SHA1 Message Date
Jean Klingler 24efbdfb7c Document whitespace rules for keyword syntax (#12773) 2023-07-08 17:24:01 +09:00
Lucas Francisco da Matta Vegi 36e71050cb Remaining macro-anti-patterns (Anti-pattern documentation) (#12769) 2023-07-08 10:17:30 +02:00
Jean Klingler 4411dbe3f2 Expand captured args with regular context (#12763)
* Expand captured args with regular context

* Rewrite test depending on current line

* Display a different warning for captured arguments

* Mention the reason in a comment
2023-07-07 22:22:01 +09:00
José Valim 93ff4a22de Disable tail call optimization on file root entries 2023-07-07 13:37:44 +02:00
Iztok Fister Jr e374882c03 Revise the description of DSLs (#12762) 2023-07-06 21:50:27 +02:00
José Valim 999ecf73de Fix references in getting started guides 2023-07-06 16:08:36 +02:00
José Valim 1cd7e53875 Tidy up getting started guides conclusion 2023-07-06 16:07:30 +02:00
José Valim e55472e9b8 More guides 2023-07-06 15:49:05 +02:00
José Valim f7fcc160b8 More guides 2023-07-06 15:23:03 +02:00
José Valim 365cd44b1c More guides 2023-07-06 15:01:45 +02:00
José Valim 3a706f7a1a More guides 2023-07-06 13:54:36 +02:00
José Valim 58bb5194d3 Propagate diagnostics from inner compiler process 2023-07-06 09:41:57 +02:00
Lucas Francisco da Matta Vegi 1b33e7259e "Scattered process interfaces" (Anti-pattern documentation) (#12759) 2023-07-06 09:06:55 +02:00
Andrea LeopardiandJosé Valim 3c0efc1e2a Add "Comments" anti-pattern to the guides (#12758)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-05 20:37:12 +02:00
José Valim 970691db2d More guides 2023-07-05 19:15:16 +02:00
José Valim 5547e35ffb More guides 2023-07-05 18:45:09 +02:00
José Valim e9e6f23105 Fixes to anti-patterns 2023-07-05 18:24:13 +02:00
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