Common Lisp Tutorial 8f: Functional Programming (more lambdas)

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

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

  • @bmcg4977
    @bmcg4977 4 ปีที่แล้ว +1

    These videos are great. I'm really enjoying this series and it's perfect timing for me, as I had recently started teaching myself CL.

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

      I actually have a new video going live at 1230 BST, so only a few hours from now, it goes deeper into the topic, hope you also enjoy that!

  • @kaelandchatman4780
    @kaelandchatman4780 4 ปีที่แล้ว +1

    Thank you for making these tutorials.

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

      You're welcome, glad you're enjoying them! When I started I thought the videos would just be me rambling about an older language, but I was pleasantly surprised to find there's others out there who want to learn it!

  • @EdouardTavinor
    @EdouardTavinor 2 ปีที่แล้ว +1

    mm, it should be straight-forward enough to add inheritence by injecting a parent object in the constructor and delegating to that if the current project doesn't have a property.
    i'd probably try that by returning a function (lambda (command value)) which wraps a cond expression with tests like (equal? command 'get-name) and (equal? command 'set-age) etc. with the default clause being (parent-object command value), or if you want immutability it would be something like (t (person name age (parent-object command value))).
    maybe that's what you do in the 3rd installment of lambdas! i haven't watched it yet :)

    • @NeilMunro
      @NeilMunro  2 ปีที่แล้ว +1

      I do add single inheritance later, yes, but I think the solution is much simpler…