48 karma · joined Dec 14, 2016 (9y ago) · 18 submissions
comment 2y ago · link · parent
That said, the other big difference with Haskell is the low-level API actually provides functionality to solve the exact problem of an async exception being raised anywhere via `mask`. It's still hard to use correctly but at least it's possible.
comment 4y ago · link · parent
comment 4y ago · link · parent
There's only one industrial Haskell codebase I've worked on, and although parts of it were very procedural, that was probably less than half the codebase, even including the IO-bound code. Sure it's one way to use the language, but it's certainly not the only one.
comment 5y ago · link · parent
comment 5y ago · link · parent
I agree that this is not as precisely stated as it could be. And unfortunately there's a type of logic puzzle that relies on people understanding these implicit quantifiers and being prepared to ignore them, which sometimes makes it hard to determine if they're supposed to be assumed present or not. But the most common interpretation is to include it.
comment 5y ago · link · parent
comment 8y ago · link · parent
I disagree that profitable businesses can continue no matter the capital structure. You're assuming that there's a liquid market for businesses, or parts of them. For a huge retailer that's almost certainly not true. Additionally, the current owners have to actually want the business to continue. I would believe there's more value to a short-term owner in liquidating assets than accruing profits over a relatively short timeframe.
comment 8y ago · link · parent
comment 8y ago · link · parent
1. A PE firm uses a combination of other people's money (limited partners a.k.a investors) and debt to buy a company.
2. The PE transfers the debt to the company's books. This way, if the company goes bankrupt the PE fund isn't liable for that debt.
3. The PE firm charges millions of dollars in fees for providing management services. This way the PE firm makes money regardless what happens to the business.
Toys R Us was profitable before it was bought and saddled with debt that was essentially used to purchase it's own business.
comment 9y ago · link · parent
I hate to admit it, but May and Davis should absolutely refuse to play ball. They should agree to terms they think are fair here, and if the E.U. doesn't go along, prepare for a really hard brexit. Which of course means that they'll capitulate.
comment 9y ago · link · parent
comment 9y ago · link · parent
As for why it's not a side effect, in Haskell all exceptions are considered to be bottom, the value that inhabits every type. Thus an exception can be raised anywhere and have any type. They can only be handled in IO though.