Skip to content

Library support for getting source file / line / other position information #38

Open
@szeiger

Description

@szeiger

There have been several mentions of "we should have something like https://github.com/lihaoyi/sourcecode in the standard library" but apparently no ticket. It has come up again in the context of scala/scala-dev#411.

What should the API look like? The full implicit machineray from sourcecode or just a few methods that give you the key information?

The implementation itself is quite simple. We already have several fast-track macro implementations that are hardcoded in the compiler, so this could be done the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededstatus:pendingThis enhancement request lacks consensus on whether or not to include it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions