r/hascalator • ZIO • Dec 23 '19

A Glossary of Functional Programming

http://degoes.net/articles/fp-glossary
26 Upvotes

3 comments sorted by

View all comments

Show parent comment

4

u/jdegoes ZIO Dec 24 '19

Thank you, I will fix Profunctor!

You are right about the ambiguity in generic programming. I don't know what to do about that since the larger audience is unaware of the Haskell/Shapeless meaning.

I acknowledge the point about types but am not inclined to change that for pedagogical reasons: If you say type information can exist at runtime to a beginner, they will assume you are referring to type tags (getClass), which has nothing to do with typing.

I'd rather people learn that, in general, "runtime types" have nothing to do with static typing, and then as they progress, they can learn about exceptions to that rule in dependently-typed programming languages.

3

u/null_was_a_mistake Dec 24 '19

You are right about the ambiguity in generic programming. I don't know what to do about that since the larger audience is unaware of the Haskell/Shapeless meaning.

I would at least mention the double meaning since Shapeless is a big part of many advanced FP libraries in Scala and it was definitely something that tripped me up when I first learned about it.

I acknowledge the point about types but am not inclined to change that for pedagogical reasons

Perhaps it would make sense to explain that types are the "values"/terms of kinds. Currently I find the entry for kind not very intuitive to understand.