Provide shortcuts for common take idioms #287
-
|
Since the following two den.lib.take.exactly({host}: ...)
den.lib.take.atLeast({host, user}: ...)Why not provide shortcuts for them under den.lib.host aspect
den.lib.user aspectSo that den.lib.host = aspect: den.lib.take.exactly({host}@ctx: fixedTo ctx aspect)
den.lib.user = aspect: den.lib.take.exactly({host, user}@ctx: fixedTo ctx aspect)Not sure about the names, but this is the idea. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I support the idea and suggest (like |
Beta Was this translation helpful? Give feedback.
-
|
Implementation and tests at #288 |
Beta Was this translation helpful? Give feedback.
Implementation and tests at #288