Re:C for Python programmers (2011)
by munificent on Tuesday November 08, 2016 @05:34PM
(#12904560)
I'm not talking about higher-kinded types, just type annotations that are more than just a single bare identifier. Stuff like:
List<int>
(Some, Tuple, Type)
Matrix[4][4]
(Para, Meter) -> ReturnType
Depends on what you mean by hard. Hard to read or hard to reason about?
* -> * and * -> * -> * are easy to read and reason about, i.e. Int -> Char -> Int. But what about types of types?
(* -> * ) -> * is confusing to reason about IMO. i.e. Applicative Functors:
(<$>) :: Functor f => (a -> b) -> f a -> f b
Not really intuitive at all, the only reason I can understand it is that I know what functors and Monads are.