Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Paolo Amoroso
@amoroso@oldbytes.space  ·  activity timestamp 3 weeks ago
@vnikolov A good use case for PROG1 is popping an item off a list L:

(PROG1 (CAR L) (SETF L (CDR L)))

@interlisp

  • Copy link
  • Flag this post
  • Block
Vassil Nikolov
@vnikolov@ieji.de  ·  activity timestamp 3 weeks ago

Right, and then that leads us towards Common Lisp's `define-modify-macro'.

Myself, I have found it handy also in Elisp:

(prog1
<set up a buffer, make it the current buffer, and return it>
<do things in the current buffer>)

#Lisp

@amoroso @interlisp

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct