gds 22.03.2012 09:01 umodni644B2E82

к моему посту #osofnz — Олег Киселёв пишет в caml-list:
"Somehow typed tagless interpreters (embeddings of a typed language) and length-parameterized lists with the append function are the most popular examples of GADTs. Neither of them seem to be particularly good or compelling examples. One can write typed interpreters in the final-tagless style, with no GADTs. Writing append function whose type says the length of the resulting list is the sum of the lengths of the argument lists is cute. However, this example does not go too far, as one discovers when trying to write List.filter for length-parameterized lists."
Что как бы подтверждает мои догадки.

1. Kakadu 22.03.2012 09:04 gemini

Догадки типа "gadtы не нужны"?

2. gdsKakadu /1 22.03.2012 09:06

ну почему же, нужны. Только очень редко, если исключить typed interpreters. Вот и хотел примеров, где они нужны кроме этого.

Do you really want to delete ?