jsigbiz / spec

JavaScript signature notation
130 stars 6 forks source link

name funcitons using labels #22

Closed Raynos closed 10 years ago

Raynos commented 10 years ago

Any type can be labeled using the labeling syntax. We should favor labeling function over the named function syntax.

This is kind of like only using var foo = function () {} and no function declarations.

Favoring the label syntax removes a permutation from jsig and simplifies it.

cc @jden @Matt-Esch

junosuarez commented 10 years ago

Does this just add the labeled function syntax or also remove the named function syntax? I like the consistency that the label syntax introduces.

junosuarez commented 10 years ago

On another read-through, answered my own question: it removes named functions in favor of consistent labels.