[Haskell-beginners] tuple space
mike_k_houghton at yahoo.co.uk
Sat Feb 6 09:08:20 UTC 2016
List<T> ensures all entries are of type T - so only one type allowed.
List<Object> allows anything but you lose type safety.
HList allows anything and retains the types. (but you do get a lot of <<< >>>>>> in declarations :) and really its pushing Java into something it isn’t. )
> On 5 Feb 2016, at 22:13, Imants Cekusins <imantc at gmail.com> wrote:
>> in Java, you'd use HList (never use Object).
> this is new to me. How is it different from List?
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners