Skip to content

Commit 410a48e

Browse files
author
U-Alpenpunk_III\Emi
committed
Formatted list in readme.
1 parent 6744bb9 commit 410a48e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ Link to discussion: https://groups.google.com/d/msg/scala-user/VSAFechtnwk/NDNeN
2323

2424
*How this macro works*
2525

26-
1) Use a compile time macro to fetch information about the AST which can be used at runtime: https://stackoverflow.com/questions/24480926/how-can-i-use-scalas-runtime-reflection-to-inspect-a-passed-anonymous-function/25316506#25316506
27-
2) Internals of the macro:
28-
a) Find all Indents in the passed function.
29-
b) Filter out classes, packages, types, function calls.
30-
c) Filter out variables which are declared inside the passed function.
31-
d) Create an expression which, when evaluated, returns a list of (Name, Value) tuples for each variable.
26+
1. Use a compile time macro to fetch information about the AST which can be used at runtime: https://stackoverflow.com/questions/24480926/how-can-i-use-scalas-runtime-reflection-to-inspect-a-passed-anonymous-function/25316506#25316506
27+
2. Internals of the macro:
28+
1. Find all Indents in the passed function.
29+
2. Filter out classes, packages, types, function calls.
30+
3. Filter out variables which are declared inside the passed function.
31+
4. Create an expression which, when evaluated, returns a list of (Name, Value) tuples for each variable.
32+
33+
Detailed comments can be found in source code.

0 commit comments

Comments
 (0)