HowProgrammingWorks / HowProgrammingWorks/Function
Improvement suggestions for d-decompose.js
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 42
- 分支
- 183
- PR 合併指標
- 30 天內沒有已合併 PR
描述
- 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)
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 d-decompose.js,尤其是 introspect 函式和 parseLines。確認目前的實作如何處理物件、遞迴物件、參數名稱與型別之間的空格,以及多行柯里化函式;當這些要求的輸入形式都能成功處理時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100