mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
changing switch/case to switch/when -- it's a better word
This commit is contained in:
parent
849f0e4192
commit
8d76f4bd3f
13 changed files with 85 additions and 38 deletions
|
@ -9,4 +9,5 @@
|
|||
if (!(answer === false)) {
|
||||
let_the_wild_rumpus_begin();
|
||||
}
|
||||
car.speed < speed_limit ? accelerate() : null;
|
||||
})();
|
|
@ -6,6 +6,7 @@
|
|||
};
|
||||
var Snake = function(name) {
|
||||
this.name = name;
|
||||
return this.name;
|
||||
};
|
||||
Snake.prototype = new Animal();
|
||||
Snake.prototype.move = function() {
|
||||
|
@ -14,6 +15,7 @@
|
|||
};
|
||||
var Horse = function(name) {
|
||||
this.name = name;
|
||||
return this.name;
|
||||
};
|
||||
Horse.prototype = new Animal();
|
||||
Horse.prototype.move = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue