viperscape / lichen

Scripting DSL with Rust interpreter
Apache License 2.0
32 stars 4 forks source link

internal and external data sources #7

Closed viperscape closed 7 years ago

viperscape commented 7 years ago

Currently in lichen data sources are identically access

root
    thing1.stuff
    thing2.stuff #defined in Rust traits when implemented
;

def thing1
    stuff 1.0
;

This is not always obvious, and maybe rust-side data should be prefixed, maybe with ~. Another good way could be parenthesis, similar to custom function calls that exist on rust-side;

root
    ~thing2.stuff  #option
    (thing2).stuff    #alt option
;
viperscape commented 7 years ago

Going to keep current syntax as it allows for overriding behaviors