Giter VIP home page Giter VIP logo

Comments (6)

joshaber avatar joshaber commented on April 20, 2024

If/when we do this, we should also support throwing exceptions within the lift methods.

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 20, 2024

There are some complexities around this that might make it untenable for 1.0. Exceptions and errors aren't trivially convertible in Cocoa (we'd probably need some special kind of error that includes the exception in its userInfo), and scheduling would probably have to be updated to be exception-safe.

I'd still like to do this at some point, but, given that exceptions are usually considered fatal in Cocoa, I don't think this is important enough to block a stable release on.

from reactivecocoa.

joshaber avatar joshaber commented on April 20, 2024

👍

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 20, 2024

Meh.

from reactivecocoa.

fatuhoku avatar fatuhoku commented on April 20, 2024

Hmm. I'm building a synchronization algorithm and as such BDD is pretty valuable. The process depends on accurate error feedback so that I can adjust the code in meaningful ways to make progress.

I opened #1546 because I ran into a situation where exceptions were being thrown and I had no way of finding out what was wrong.

from reactivecocoa.

jspahrsummers avatar jspahrsummers commented on April 20, 2024

As noted in #1546 (comment), exceptions are intended to be fatal in Objective-C. Catching them would cause all sorts of undefined behavior.

from reactivecocoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.