jonthegeek / factory

factory: Build Function Factories
Other
49 stars 6 forks source link

Make "=" unnecessary in factory calls #4

Closed jonthegeek closed 5 years ago

jonthegeek commented 5 years ago

Right now, in the example in the README, I need "exp =" in the call. Make it accept just the name of a parameter if that parameter doesn't have a default value. This should be safe, because unnamed arguments to factory must be parameters. To determine: should we make them !! things that should are variables pointing at names, then? I'm pretty sure yes, but need to gather realistic use cases.