Scotty Jamison
Scotty Jamison
I would like to add a couple of thoughts to this discussion. @getify, [earlier](https://github.com/getify/You-Dont-Know-JS/issues/836#issuecomment-239575537), stated that JavaScript doesn't have classes similar to Java, C#, or C++, and he expects that's...
Haha, sorry, I edited that out. I've got a bad habit of posting something, then continuously editing it, because I don't like how I phrased something :p. And, don't get...
Could you link me to your working draft of your next book edition? Now you've got my interest, and I would like to see what you've got.
I very much dislike the splice method as well, and find its API to be very unintuitive. My issue with it is that it's a jack-of-all-trades (and it's poorly named,...
Ah, ok. A handful of other questions then. Say I have code like the following: ```javascript class User { name: string constructor(name) { this.name = name } } const user...
Alright, that makes sense. > You do make me wonder if changing a matched interface should be allowed. Specifically making something no longer match the interface. I was actually trying...
The other issue is that, the reduce's accumulator is very general purpose. You can use an object, an array, a number, a string, a map, etc. Really, any value can...
I'm going to try and brainstorm a couple of ways in which we could make it clear whether "true" means first or second element of array. Not that any of...
Alright - I'm going to copy-paste your example but break it up over multiple lines, because I'm going to compare another code snippets against it: ```javascript [1, 2, 3, 4,...
I do like the `fn@()` syntax - there was some previous discussion around a syntax like that in issue #3 But, the `fn(this: rec, arg0)` is a pretty intriguing idea...