coolicer
V2EX  ›  Node.js

generator 的*号习惯在哪一边上

  •  
  •   coolicer · Jul 17, 2014 · 2925 views
    This topic created in 4510 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   ·   2149 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 03:34 · PVG 11:34 · LAX 19:34 · JFK 22:34
    ♥ Do have faith in what you're doing.