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

Should we have a syntax for nested ? #87

Closed
afsalthaj opened this issue Oct 14, 2019 · 0 comments
Closed

Should we have a syntax for nested ? #87

afsalthaj opened this issue Oct 14, 2019 · 0 comments
Labels
question Further information is requested

Comments

@afsalthaj
Copy link
Collaborator

As of now, describing a nested config is

  val database =
    (string("connection") |@| int("port"))(Database.apply, Database.unapply)

  val appConfig =
    (nested("south") { database } ? "South details" |@|
      nested("east") { database } ? "East details" |@|
      string("appName"))(AwsConfig, AwsConfig.unapply)

Should this be somthing like

  val database =
    (string("connection") |@| int("port"))(Database.apply, Database.unapply)

  val appConfig =
    ("south" /  database  ? "South details" |@|
     "east" /   database  ? "East details" |@|
      string("appName"))(AwsConfig, AwsConfig.unapply)

@jdegoes ?

@afsalthaj afsalthaj added the question Further information is requested label Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant