Skip to content

Simple way to "copy" args #19

@squito

Description

@squito

Sumac should provide some simple way to copy "matching" args from one arg instance to another. This should also handle dervied values, not just the direct string arguments. eg.:

trait DbArgs{
  var user: String = _
  var password: String = _
  var host: String = _
  var port: Int = _
  var _connection: Option[Connection] = None
  def connection = {
    //initialize _connection if need be
  }
}

when that is copied, it should somehow know that it should also copy _connection.

I have no idea how to do this right now. maybe it will require extra annotations on _connection, or implementing some method which returns some kind of handle on _connection, I dunno ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions