coolicer
V2EX  ›  Node.js

generator 的*号习惯在哪一边上

  •  
  •   coolicer · Jul 17, 2014 · 2943 views
    This topic created in 4518 days ago, the information mentioned may be changed or developed.
    以下几种都见过
    generator = function *() 国内?
    generator = function * () ?
    generator = function* () 国外?
    2 replies  •  2014-07-18 16:55:18 +08:00
    hussion
    hussion
    Jul 18, 2014
    1
    放哪都行,没有强制要求,就跟c的指针的*一样
    rekey
    rekey
    Jul 18, 2014
    2
    呃,我用的是非国内非国外的中间的那一种。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:53 · PVG 15:53 · LAX 23:53 · JFK 02:53
    ♥ Do have faith in what you're doing.