Lisp 1 vs Lisp 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @capability-snob
    @capability-snob ปีที่แล้ว +1

    Isn't Java a Lisp-2? You can have a method, a variable, and an instance attribute with the same name. If you call it, it uses the method binding, if you use it as a value, you get the variable.

    • @the-lisper
      @the-lisper  ปีที่แล้ว +1

      Yes! You are right!

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

    When I switched from Scheme to Common Lisp I hated this namespace separation. Now I just accept it. Never thought it had any advantages.

    • @the-lisper
      @the-lisper  ปีที่แล้ว +6

      Nowadays, we are more and more used to a functional approach to programming and a single namespace makes it easier. The main advantage of multiples namespaces is with macros, preventing some name collision.

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

      @@the-lisper Yeah, I noticed that when I write a let statement variable binding or choose the names of function arguments I don't have to worry about them colliding with function names. That's actually quite helpful. Seems to be a very smart and underrated language feature.

  • @sethbrown1763
    @sethbrown1763 ปีที่แล้ว

    Thank you for sharing this video!
    I didn't know about funcall or putting the lambda within an extra pair of parentheses. Very interesting.

    • @the-lisper
      @the-lisper  ปีที่แล้ว

      Thank you for watching! Yeah, `funcall` is useful!

    • @Nondv
      @Nondv ปีที่แล้ว

      Keep in mind, extra pair of parens only works with an explicit lambda so it's not very useful syntax sugar

    • @sethbrown1763
      @sethbrown1763 ปีที่แล้ว

      @@NondvThank you for that detail.

  • @mdmahenhasan
    @mdmahenhasan 11 หลายเดือนก่อน

    how to setup in vs code and run terminal realy i learn this languse please help mack video please boss i am wait for your video

    • @the-lisper
      @the-lisper  11 หลายเดือนก่อน

      I put it in the list of video ideas!