[Haskell-beginners] tuple space

Mike Houghton mike_k_houghton at yahoo.co.uk
Sat Feb 6 09:08:20 UTC 2016

In Java
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
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

More information about the Beginners mailing list