for (let i = 0; i < someVar; i++) {
invariant: i < 10000;
console.log(i);
}
along with other kinds of contract, like preconditions and postconditions - https://github.com/codemix/babel-plugin-contracts7,416 karma · joined October 23, 2009
Email: charles@codemix.com
for (let i = 0; i < someVar; i++) {
invariant: i < 10000;
console.log(i);
}
along with other kinds of contract, like preconditions and postconditions - https://github.com/codemix/babel-plugin-contractsTangible example please. Bit Coin transaction volume is about 200k/day, so how are these millions of people using it?
You can, it just requires one further level of pointer indirection. Rather than pointing to the physical location of the data, you store a pointer to an offset in an array of pointers.
Alternatively you can point directly if you're prepared to update those pointers when you move things around. Luckily a graph database is ideally suited for this kind of operation because it makes discovering those pointers exceptionally simple and efficient.
Assertions are comments which can always be trusted and which never get out of date. It baffles me that there's so much reluctance to use them (especially in dynamic languages).
Some members of that community prefer this style because they find it more readable.
Well, you're actually right. Babel 6 has had a lot of problems, particularly with async functions, but they are slowly being worked out. I think it's pretty clear at this point that it was released too early, and they really need smoke tests to prevent this kind of problem in future. If you've already built a significant project using Babel 5, definitely consider holding off the upgrade for another month or two.
There is really no need for the arguments object in a world with default and rest parameters, and it has always been an obstacle to performance, so I'm glad arrow functions don't use it.