Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuple composition does not merge? #37

Open
blais opened this issue Jan 27, 2023 · 0 comments
Open

Tuple composition does not merge? #37

blais opened this issue Jan 27, 2023 · 0 comments

Comments

@blais
Copy link

blais commented Jan 27, 2023

Hi!
I was expecting the semantics of tuple composition to merge and accrue (for lists) the contents.
For example:

a = {                                  
  config = {                           
    exponent = { constant = 0.30 }     
  }                                    
};                                     
                                       
b = {                                  
  config = {                           
    base = { constant = 2.0 }          
  }                                    
};                                     
                                       
default = a b                                                                 

but the result is

+- default
|  +- config
|  |  +- base
|  |  |  +- constant => 2.0

I was expecting both sets of attributes in default.
Same behavior with compose_all().

Is tuple merging possible in this implementation of gcl, or is only applied in literal syntax?
Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant