Skip to content

Escaping variable names #62

Open
Open
@cantacuzene

Description

@cantacuzene

Hi Seb!
First of all I'd like to say this library is quite a marvel compared to the alternatives we have in the dotnet world!.
Keep up the good work!!

This is not an issue per say, but i'm wondering if there is a way to escape the variables names in expressions.

The goal here would be to allow hyphen-case variables to be properly identified by the parser
for example i'd like to be able to evaluate expressions like this :

var exp = "net-pv / Total::net-pv"

where net-pv and Total::net-pv are both variables.

If the functionality does not exist , a quick win might be to use string literals to help distinguish variable names in the expression

var exp = $"{net-pv}/{Total::net-pv}"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions