Currying & Parameter Ordering | Code Walks 064

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 12

  • @ProduccionesLukaz
    @ProduccionesLukaz 4 роки тому +6

    We need these code walks back!!

  • @schachlokarpa
    @schachlokarpa 6 років тому +2

    I think the answer depends on if the partial that you get after applying N first arguments is useful or not. If you can make a partial and then reuse it a few times, then the order is right. If you don't intend to reuse the partial, the order does not matter.

    • @crazyfox55
      @crazyfox55 6 років тому

      Therefore in the take example we would want to create partials defined with a number? So we can use this on multiple lists? Or should we do the opposite, so that we can vary the number of items we take from a specific list? Therefore I agree with your statement unless both behaviors are useful, then currying is flawed. I think currying could be enhanced with types i.e array and int as arguments, then you could pass them in any order. Which would allow for both behaviors.

  • @artavazdavagyan
    @artavazdavagyan 3 роки тому

    thank you, a really useful information as always

  • @sameersawla
    @sameersawla 5 років тому +2

    Do you happen to have a spotify podcast or something for these code walks @christopher?

  • @kallibaer32
    @kallibaer32 7 років тому +1

    Did you shoot this footage in Germany? The traffic signs and the buses look like it

  • @AndersJackson
    @AndersJackson 2 роки тому

    Solve that problem is to use a function that reverse the order of arguments, and then currying that function.

  • @dzigerica666
    @dzigerica666 6 років тому

    Hey Christopher, do you ever have followers on your code walks? Like, people walking behind you and listening what you have to say? :)

    • @ChristopherOkhravi
      @ChristopherOkhravi  6 років тому

      Hahahha that would be super creepy 😁😁😁 Thanks for watching :)