Haskell Course - Lesson 8 - Creating Non-Parameterized Types

preview_player
Показать описание

Outline:
0:00 - Outline
0:57 - Type Synonyms
1:57 - Why use Type Synonyms
5:39 - Creating new types
7:30 - Using our new type
9:35 - Value Parameters
13:44 - Why use Record Syntax
16:03 - Record Syntax

#haskell #beginners #creating #types
Рекомендации по теме
Комментарии
Автор

Thanks for these great lessons. Looking forward to Lesson 9 and10!

jw
Автор

I never had before found a pretty clear and good explanation of types in Haskell!

braejan
Автор

Great video series, very well explained!

jonkoxl
Автор

Slow and steady wins the race! Thanks for releasing this consistently.

pxkqd
Автор

For records there is also a convenient operator & (called "euro" as it equals flip $). So we write circ & area, rect1 & area like in the other languages (cicr.area, rect1.area).

alexanderskusnov
Автор

Thanks for this lecture. While I read about creating own types before, this really helped to get a better understanding. Following this course, I played around with Haskell and wrote some toy programs. While I managed to make them do what I wanted, the code feels unnatural or clumsy at times. Is there any good place where I could get a code review for my beginner programs?

robertschwede
Автор

In this video, inside 13 minutes is the example of calculating area. I understand the signature, and the area functions that follow. But below that are: area smallCircle and area rect2 . Could you elaborate on them? Why is "smallCircle" and "rect2" following the function being called? Why not numbers?

geoffjacobs
Автор

Amazing content as always! Thank you for the effort.

I noticed that I cannot create multiple record types with same field names. Is there any way around this? Feels very limiting

Naveen-bscq