在coffeescript中构建类时,是否有理由不使用胖箭头方法?
编辑:那好吧!很好的回复!:) 总而言之,问题是: - 需要更多内存 - 无法修补 - 请问问题,为什么它用于此方法? 惯例: - 绑定功能时要明确. - 在构造函数中声明胖箭头方法. - 尽可能多地使用,而不是在类声明中.
memory-management coffeescript arrow-functions
arrow-functions ×1
coffeescript ×1
memory-management ×1