Charles Pick

Results 105 comments of Charles Pick

`retry()` will run the entire function again, with the provided arguments, is that correct? To make sure I understand the semantics correctly, please would you mind rewriting the `defaultRequestTimeout` setter...

I'm trying to figure out what code with `rescue` should compile to, so far I'm guessing something like this: ```js set defaultRequestTimeout(...args) { _retrier: while (true) { let interval =...

Yes that makes sense, thanks. I guess the other question is should `rescue` *only* catch errors in contracts, or should it catch any exception? I gather that Eiffel doesn't have...

I agree about not wanting to recreate Eiffel in JS, it's a good source of inspiration though :) It would be nice to be able to specify an error class,...

Ah, if preconditions never invoke the rescue clause then I think it's a little easier. I'm not sure when I'll have time to implement these changes, I'm a little busy...

hey @hpi-philippe, the plugin will not currently work with TypeScript, but now that babel 7 supports TypeScript it would be possible to make it work relatively easily. There are a...

@hpi-philippe i haven't tried it but it may very well work fine, you might have to declare some global variables for things like `old()` to keep typescript happy

@LewisAndrewCampbell yes please test with babel 7, if it doesn't work let me know.

@gajus that'd be awesome, thanks! I've added you as a collab on github.

Standard is out because of the semi-colons thing, you can prise them from my cold, dead, fingers 😄