3 ms·
Pretty much all languages with generics will have that kind of declarations, the only question is how many type parameters they'll go up to. In C# Action goes u
by masklinn 11y ago
Pretty much all languages with generics will have that kind of declarations, the only question is how many type parameters they'll go up to. In C# Action goes up to 16[0] while Rust's tuple go to 12[1] and GHC goes to 62[2] (intending 100, but a comment notes declaration of a 63-wide tuple constructor segfaults)
[0] https://msdn.microsoft.com/en-us/library/dd402872(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/dd402872(v=vs.110)....
[1] https://github.com/rust-lang/rust/blob/master/src/libcore/tuple.rs#L238 https://github.com/rust-lang/rust/blob/master/src/libcore/tu...
[2] https://downloads.haskell.org/~ghc/7.2.2/docs/html/libraries/ghc-prim-0.2.0.0/src/GHC-Tuple.html https://downloads.haskell.org/~ghc/7.2.2/docs/html/libraries...