Haskell 3: Types and typeclasses

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ต.ค. 2024

ความคิดเห็น • 14

  • @arnity123
    @arnity123 8 ปีที่แล้ว +5

    Your video just answered all my questions in the first 40 seconds! Thank you!

  • @jdchannelviewer
    @jdchannelviewer 3 ปีที่แล้ว

    Finally a video that made typeclasses make sense.

  • @galactromeda
    @galactromeda 5 ปีที่แล้ว +3

    oh my god. someone who actually correctly pronounces the word "char" as "care"
    I never thought I would see the day. Excellent work.

  • @Emasinmatthew1
    @Emasinmatthew1 9 ปีที่แล้ว +8

    love this thank you!! But maybe things have changed in the intervening year but when I check the type of let x = 3, :t x returns not Int but Num a => a again. Has something changed that you know of?
    Thank you!

    • @zitt4147
      @zitt4147 5 ปีที่แล้ว

      Simply checking :t 5 gives me the result claiming type of 5 is Num p => p as well. That's not quite confusing, though I found this explanation: stackoverflow.com/questions/34974872/what-does-num-a-a-mean-in-haskell-type-system

    • @skepticmoderate5790
      @skepticmoderate5790 4 ปีที่แล้ว

      @@zitt4147 Did you watch the video? He stated that assigning a variable to '3' forces the interpreter to choose a type.

  • @Samarnat01
    @Samarnat01 3 ปีที่แล้ว

    Did you miss talking more on Typeclasses ?
    Can you please add more details to TypeClasses ? Thanks !
    Your videos are great, after going through 3 different set of video tutorials, yours is the best.
    Thanks Again.

  • @MatthiasSieber
    @MatthiasSieber 10 ปีที่แล้ว +3

    good video... I'm hoping you'll talk about later chapters of the book (Functors and Monads), too.

    • @gustavotomas5214
      @gustavotomas5214 3 ปีที่แล้ว

      dunno if you guys cares but if you guys are bored like me atm you can stream all the latest movies on instaflixxer. I've been watching with my gf for the last months :)

    • @reeceorlando7640
      @reeceorlando7640 3 ปีที่แล้ว

      @Gustavo Tomas definitely, been watching on InstaFlixxer for since november myself :D

  • @danieldyulgerski383
    @danieldyulgerski383 9 ปีที่แล้ว +1

    Hi,
    Thanks for the video, it's very helpful.
    Just one question.
    When I type in command prompt let x = 3 and then :t x it shows this - x :: Num a => a
    For some reason it is different from your result. Any thoughts? Thanks

    • @mgfg22
      @mgfg22 5 ปีที่แล้ว +1

      ı believe it is about ghci version bro

  • @susie5245
    @susie5245 6 ปีที่แล้ว

    Thank you! Very clear and helpful video. :)

  • @naganikhilbijjala1000
    @naganikhilbijjala1000 3 ปีที่แล้ว

    Very well explained