Skip to content

是否要在第五章(函数)中保留生成器函数相关内容? #6

@tanpero

Description

@tanpero

如题。
在第五章的开始部分,所使用的函数语法都是箭头函数(() => {}),
并简要阐述了不使用普通函数语法(function () {})的原因。
而生成器函数(Generator Function)目前暂不能以箭头函数形式定义,
必须要使用关键字 function*
这样的话,可能会导致前后文行文约定不一致,可能需要额外的解释负担,
如果删去生成器相关内容,似乎就略过了 ECMAScript 6 的一大知识点。
询问下合适的意见:是否要在第五章中保留生成器函数的相关内容?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions