Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improvement suggestions for d-decompose.js #10

Open
igavrysh opened this issue Aug 25, 2017 · 0 comments
Open

Improvement suggestions for d-decompose.js #10

igavrysh opened this issue Aug 25, 2017 · 0 comments

Comments

@igavrysh
Copy link

igavrysh commented Aug 25, 2017

  • change introspect function so that it can handle objects included
  • change introspect function so that it can handle recursive objects
  • parseLines improvement so that it can process more than one space b/w parameter name and data type
  • add support for curried functions multiline structure
    e.g.
'use strict';

const currdObj = { 
	common: {
			sum:  (
			// Partial sum apply, use first argument
			x // first argument which should support summation opertaion
			// Example: sum(1)
			// Returns: function(y) { return 1 + y }
		) => (
			// Apply curreied sum to second argument
			y // second argument which should support summation operation
			// Example: sum(1)(2)
			// Returns: 3
		) => (
			x + y
		) 
	}
};

introspect(currdObj)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant