HowProgrammingWorks / HowProgrammingWorks/Function
Improvement suggestions for d-decompose.js
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 42
- Forks
- 183
- PR merge metrics
- No merged PRs in 30d
Description
- change
introspectfunction so that it can handle objects included - change
introspectfunction so that it can handle recursive objects parseLinesimprovement 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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading d-decompose.js, especially the introspect function and parseLines. Determine how the current implementation handles objects, recursive objects, spacing between parameter names and types, and multiline curried functions; done means these requested input forms are processed successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100