4 ms·
> MPs voted down her deal by 391 to 242 - a smaller defeat than when they rejected it in January. > The PM said MPs will now get a vote on whether the UK shoul
by weinzierl 8y ago
> MPs voted down her deal by 391 to 242 - a smaller defeat than when they rejected it in January.
> The PM said MPs will now get a vote on whether the UK should leave without a deal on 29 March and, if that fails, on whether Brexit should be delayed.
What happens if they vote "No" three times in a row (no deal, no no-deal, no postponement)?
If this wasn't politics I'd say: See if you can simplify this function, bonus points if you can avoid error conditions too:
func brexit(){
if(deal){
exit(deal);
} else {
if(!deal) {
exit(null);
} else {
if(postpone){
wait(TIME);
brexit();
} else {
throw new handsInTheAir();
}
}
}
}
- simook 8y agotempting
- pmyteh 8y agoI think 'handsInTheAir()' got thrown a while ago; the trouble is that the government's error handler sucks, and so does its parent's (Parliament). But, by design, exceptions don't automatically propagate from Parliament to its parent (the citizens) so the process is currently wedged in some kind of undefined behaviour. And no-one has the privileges to HUP the job.
- marssaxman 8y agoThe Queen does not have root?
- pmyteh 8y agoYou're quite right, the Queen does have root. But she's not allowed in the server room after That Incident with Charles, one of her predecessors in the job. And it's been so long since her personal credentials were needed that nobody's quite sure where they are...
- matthewmacleod 8y agoI would stress that constitutionally parliament's vote on "no deal" is entirely irrelevant – the currently legal status is that the Treaties will cease applying to the UK on 29 March, regardless of the outcome of that vote. In other words… func brexit(){ if(deal){ exit(deal); } else { if(!deal) { exit(null); } else { if(postpone){ wait(TIME); brexit(); } else { exit(null); } } } } However, this is subject to change. Motions can (and will) be amended.
- nicoburns 8y agoIn practice, the EU seem willing to postpone Brexit to give the UK more time to think, and it seems likely that parliament will vote to do this (which they have the power to do).
- berbec 8y agoThere actually is a similar flowchart in a linked article. https://www.theguardian.com/politics/2019/mar/08/the-brexit-state-of-play-a-guide-to-next-weeks-crucial-votes https://www.theguardian.com/politics/2019/mar/08/the-brexit-...
- deleted 8y ago[deleted]
- berbec 8y agovoid choices() { if(uk_MPs_yes_vote(12_march)) { brexit(29_march[current_deal]); } else if(uk_MPs_yes_vote(13_march)) { brexit(29_march[no_deal]); } else if(uk_MPs_yes_vote(14_march)) { if(EU_yes_vote(21_march)) { brexit(extension_date); } } else if(uk_MPs_yes_vote(22_to_29_march)) { brexit(29_march[current_deal]); } else { brexit(1/0); } }
- weinzierl 8y agoThanks, that's better than my code. It has a logical flaw though, I think. It says "UK asks for a short extension" and then the EU leaders magically could decide to "No to short, but yes to longer extension". I don't know if this is a serious possibility or just wishful thinking...
- benj111 8y agoWhile true: Bicker() Did it in one line.
- NeedMoreTea 8y agoWere it not for the coalition's change to fixed term parliaments (something else history can blame Cameron for), any defeat of the scale of these would have brought down the government. So the smart-arse new junior programmer, Clegg, refactored something he did not understand. The code review by Cameron signed it off to be pushed live. We now pay the consequences. Repeatedly.