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!
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 :)
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.
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!
Thank you for making these tutorials.
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!
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 :)
I do add single inheritance later, yes, but I think the solution is much simpler…