Detecting and Creating Missing Functions rewrite #75

Merged
merged 2 commits into from Mar 15, 2013

2 participants

@d8uv

New solution, and greatly expanded discussion section
to explain it.

From:
  unless Class::member
    Class::member = contents

To:
  do -> Class::member ?= contents

@d8uv d8uv Detecting and Creating Missing Functions rewrite
New solution, and greatly expanded discussion section 
to explain it.

From:
  unless Class::member
    Class::member = contents

To:
  do -> Class::member ?= contents
d082571
@sukima

Is it possible to provide compiled JavaScript snippits? Or is that an exercise for the student (not sure how other pages handle that).

This is a great trick and well worth knowing (had to use it myself today). The discussion section is well worded only I can see a newer user reading it and getting confused (hence maybe JavaScript examples to show the difference between them)

Other then that I say :shipit:

@d8uv d8uv merged commit 304ab4f into coffeescript-cookbook:master Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment