Merge branch 'master' of github.com:kind-lang/kind

This commit is contained in:
MaiaVictor 2021-10-17 20:21:35 -03:00
commit 8704f08c0e
2 changed files with 3 additions and 3 deletions

2
bin/bootstrap.js vendored
View File

@ -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");

View File

@ -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