Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Provide builder API for option objects #38

Open
mysticfall opened this issue Apr 8, 2015 · 0 comments
Open

Provide builder API for option objects #38

mysticfall opened this issue Apr 8, 2015 · 0 comments

Comments

@mysticfall
Copy link
Member

For instance, Route provides various apply methods which would instantiate the route instance with different properties.

However, when there are many options, providing factory methods for every combinations of them would be nearly impossible and using such API can be quite cumbersome and error prone.

Better approach would be provide a builder style API, like below :

val route = RouteBuilder().withTemplate("...").withTitle("...").build
@math85360 math85360 mentioned this issue Aug 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant