mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-09-11 07:15:45 +03:00
Merge branch 'master' of github.com:kind-lang/kind
This commit is contained in:
commit
8704f08c0e
2
bin/bootstrap.js
vendored
2
bin/bootstrap.js
vendored
@ -8,7 +8,7 @@ var kind_path = path.join(__dirname, "js/src/kind.js");
|
||||
process.chdir(path.join(__dirname, "../base"));
|
||||
|
||||
// Restores last kind.js from git in case we destroyed it
|
||||
//execSync("git checkout "+kind_path);
|
||||
execSync("git checkout "+kind_path);
|
||||
|
||||
// Creates kind.js
|
||||
console.log("Generating kind.js");
|
||||
|
@ -29,8 +29,8 @@ situation, but they 1. have considerable runtime cost, 2. require big external
|
||||
libraries, 3. can be overkill, 4. are still not as succinct as JS.
|
||||
|
||||
To be fair, the JavaScript version, while terse, is problematic. Not only
|
||||
because it mutates the original object, but because, if any of these keys don't
|
||||
exist, the program above will crash. To make this program safe, one must make
|
||||
because it mutates the original object, but because, if any of the keys don't
|
||||
exist, the program will crash. To make that program safe, one must make
|
||||
several checks that end up making the code verbose too:
|
||||
|
||||
```javascript
|
||||
|
Loading…
Reference in New Issue
Block a user