Oli

Results 164 comments of Oli

FWIW, I agree that those sentences are confusing. For me the more confusing sentence is: > The function signature also tells Rust that the string slice returned from the function...

> No, "at least" is correct and "at most" is incorrect. https://github.com/rust-lang/book/pull/1875, but the short story is that 'static can substitute in for 'a and then the returned references lifetime...

Well, I'm still not convinced... Tend to agree with @mulkieran

Agree with @d0sboots comments. > So what the signature of longest says is that the return value is only guaranteed to live as long as 'a, where 'a is the...

> How did you determine that 'a started and ended at those particular lines? That is the information that I think is currently missing from the book. It's explained a...

Oh, I just realised I could do: ``` javascript it('should get resource', function (done) { client.get('/some/resouce', function (error, res) { if (error) return done(error); expect(res.status).toBe(200); done(); } } ``` This...

Think I got it to work with: ``` javascript { "presets": ["es2015-node6"], "plugins": [ "babel-plugin-transform-es2015-destructuring", "transform-object-rest-spread" ] } ```

@ss4xxi it does... The issue is that `transform-object-rest-spread` doesn't work without `transform-es2015-destructuring` for some reason.

Probably because Babel still requires additional plugins for object rest spread to work (https://github.com/babel/babel/issues/4074), `babel-plugin-transform-es2015-destructuring` and `babel-plugin-transform-es2015-parameters` which are otherwise not required for Node v6.