First release of Shed Skin, a Python-to-C++ compiler.

Discussion in 'Python' started by Mark Dufour, Sep 12, 2005.

  1. Mark Dufour

    Mark Dufour Guest

    Obviously, neither the 0 nor the message following should have been
    The latter is certainly my goal. I just haven't looked into supporting
    exceptions yet, because I personally never use them. I feel they
    should only occur in very bad situations, or they become goto-like
    constructs that intuitively feel very ugly. In the 5500 lines of the
    compiler itself, I have not needed to use a single exception. For
    example, I prefer to check whether a file exists myself, rather than
    executing code that can suddenly jump somewhere else. There's probably
    some use for exceptions, but I don't (want to?) see it.

    Seeing how often exceptions are used by other people though, it's
    probably one of the first things I should look into.. :)

    Mark Dufour, Sep 12, 2005
    1. Advertisements

  2. Mark Dufour

    Fuzzyman Guest

    In general it's considered quite pythonic to catch exceptions :)

    It's a particularly useful way of implementing duck typing for example.

    I'm not sure if I've got *any* code that doesn't use exceptions


    All the best,

    Fuzzyman, Sep 12, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.