TomasMikula / libretto

Declarative concurrency and stream processing library for Scala
Mozilla Public License 2.0
196 stars 7 forks source link

Custom macros for source position #64

Closed TomasMikula closed 2 years ago

TomasMikula commented 2 years ago

Currently, we use sourcecode to obtain the source file and line number.

We would benefit from some Libretto-specific functionality, e.g. names of variables in λ-expressions (λ { a => ... }, λ { case (a |*| b) => ... }).

For the start, let's recreate the functionality that we get from sourcecode, i.e. file name and line number. Then we can take it further.