[RFC] Adding a "fluent" interface (a.k.a method chain) #314
okuramasafumi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say we have a resource class:
If we want to have a new resource class that's similar to
UserResource
, one way is to inherit it.But what if we can do something like this?
This way, we can create ad-hoc class without adding files. It's useful when we must define many resources but they're almost the same.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions