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

Configurable argument #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

KengoTODA
Copy link
Collaborator

To write readable code, current interface for argument is not ideal. Now we start supporting new interface like api.method({"foo": foo, "bar": bar}).

To keep backward compatibility, we need to make it configurable. I made an enum to implement it.

KengoTODA and others added 5 commits February 3, 2013 15:24
currently each generated method accepts a lot of object.
generally it has no problem, but it would be bad when we have
a lot of argument in controller.

So, we make it configurable to allow new argument interface like below:

generatedJavascript.someMethod({
  foo: 'foo',
  bar: 'bar',
  num: 0
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant