Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Make generator and simplifier fun interface #191

Closed
jcornaz opened this issue Aug 5, 2020 · 1 comment
Closed

Make generator and simplifier fun interface #191

jcornaz opened this issue Aug 5, 2020 · 1 comment
Assignees

Comments

@jcornaz
Copy link
Owner

jcornaz commented Aug 5, 2020

Starting from kotlin 1.4, there's no longer need for a factory function create. Generator and Simplifier can be declared as fun interface, allowing the user to call Generator { it.nextInt() } instead of Generator.create { it.nextInt() }.

The create functions should be deprecated in favor of the fun interface usage.

@jcornaz jcornaz added design and removed improvement labels Aug 5, 2020
@jcornaz
Copy link
Owner Author

jcornaz commented Aug 16, 2020

Done in 6454e57

@jcornaz jcornaz closed this as completed Aug 16, 2020
@jcornaz jcornaz self-assigned this Aug 17, 2020
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