Hacker Newsnew | past | comments | ask | show | jobs | submit | debugnik's commentslogin

I guess you can define

  union Union<T1, T2>(T1, T2);
Add a bunch of overloads and you'd replicate for T1|T2 syntax the equivalent mess to (Value)Tuple<...> that eventually became the backing for actual tuple syntax.

> with the optimization that cases with the same type are unified which is still type safe.

To be clear, this requires explicitly using the same field name as well.


That is not what C# has just added to the language though. These union types so far are just wrappers over an `object` field which gets downcasted.

F# offers actual field sharing for value-type (struct) unions by explicitly sharing field names across cases, which is as far as you can push it on the CLR without extra runtime support.


This post is Google attempting outrage bait to push for mass surveillance. The comments can't get much better than the topic.

Debugger positions on the other hand are a pain with these things.

Uh yes, that's what I meant ;)

In C/C++ you have the #line preprocessor directive. It would be nice if Go had something similar.


Go has apparently got //line directives, and this project uses them.

Also Live. Windows Live [whatever], Xbox Live [whatever], Games for Windows - Live, Office Live.

That's still a win for the company if they engage with side media or merchandise, although perhaps not for the gaming industry as a whole. I, for example, don't like LoL the game but I recently watched Arcane, and I've bought more than one artbook from games I don't really feel like playing either.

One great thing about multi-media projects (as in appearing in multiple media separately), is that you can like and engage with just part of them.



For Swyer syndrome, A 2017 study estimated that the incidence of Swyer syndrome is approximately 1 in 100,000 females. Fewer than 100 cases have been reported as of 2018.

For both the genetic disorders, they would have to be beneficial or at least not an disadvantage, for elite sport activity in order to be an issue for misclassification. For a sex-determination system, they could simply add an exception for Swyer syndrome and postpone the decision until such individual presented themselves at an Olympic competition.


You'd create a bare git repo (just the contents of .git) on the host with git init --bare, separate from your usual working tree, and set it as a remote for your working trees, to which you can push and pull using ssh or even a path from the same machine.

> Passing it means organizing a sufficient number of yes votes.

EU Parliament can't propose legislation, only vote on proposals from the Commission. We'd have to convince the Commission to propose a law to prevent themselves from trying to pass this bullshit over and over.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: