Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16778
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Questions about LISP and Python. |
| Date | 2011-12-07 06:17 -0500 |
| References | <6b56c68d-22ed-427d-a05e-c503e9990a20@r28g2000yqj.googlegroups.com> <ad925470-283b-4bf2-b0e8-3854a71b640c@x7g2000yqb.googlegroups.com> <jbidi6$aq4$1@dont-email.me> <3847f890-210a-4695-b37c-b82103fd20d7@v5g2000yqn.googlegroups.com> <4EDF3C91.3000605@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3377.1323256705.27778.python-list@python.org> (permalink) |
On 12/7/2011 5:14 AM, Andrea Crotti wrote: > On 12/06/2011 04:36 AM, Xah Lee wrote: >> i don't like python, and i prefer emacs lisp. The primary reason is >> that python is not functional, especially with python 3. The python >> community is full of fanatics with their drivels. In that respect, >> it's not unlike Common Lisp community and Scheme lisp community. >> > > I love emacs and I love python, but saying that elisp is a better language > than python and more functional is plain ridiculous. > Elisp is great to extend Emacs, but with dynamic scoping and side effects > used everywhere should not even be considered between the functional > languages, at least for how it's mainly used. > > This is a typical usage taken from simple.el > (defun pop-global-mark () > "Pop off global mark ring and jump to the top location." > (interactive) > ;; Pop entries which refer to non-existent buffers. > (while (and global-mark-ring (not (marker-buffer (car global-mark-ring)))) > (setq global-mark-ring (cdr global-mark-ring))) > (or global-mark-ring > (error "No global mark set")) > (let* ((marker (car global-mark-ring)) > (buffer (marker-buffer marker)) > (position (marker-position marker))) > (setq global-mark-ring (nconc (cdr global-mark-ring) > (list (car global-mark-ring)))) > (set-buffer buffer) > (or (and (>= position (point-min)) > (<= position (point-max))) > (if widen-automatically > (widen) > (error "Global mark position is outside accessible part of buffer"))) > (goto-char position) > (switch-to-buffer buffer))) > > Which means more or elss pop a mark from the mark ring, get the current > buffer/position, > then set the buffer, widen if necessary, go to some position and switch > to that buffer. > > Nothing wrong with it, but basically it messes around with global state, > as most elisp functions > do. > > And how python 3 would be less functional? It does not pretend that surrounding statements with parentheses turns them into expressions. ;-) -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Questions about LISP and Python. Xah Lee <xahlee@gmail.com> - 2011-12-05 20:36 -0800
Re: Questions about LISP and Python. Chris Angelico <rosuav@gmail.com> - 2011-12-06 16:10 +1100
Re: Questions about LISP and Python. Rick Johnson <rantingrickjohnson@gmail.com> - 2011-12-06 05:13 -0800
Re: Questions about LISP and Python. Chris Angelico <rosuav@gmail.com> - 2011-12-07 00:27 +1100
Re: Questions about LISP and Python. Ian Kelly <ian.g.kelly@gmail.com> - 2011-12-06 09:58 -0700
Re: Questions about LISP and Python. Rick Johnson <rantingrickjohnson@gmail.com> - 2011-12-07 20:10 -0800
Re: Questions about LISP and Python. Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-08 11:10 +0000
Re: Questions about LISP and Python. Chris Angelico <rosuav@gmail.com> - 2011-12-08 22:20 +1100
Re: Questions about LISP and Python. MRAB <python@mrabarnett.plus.com> - 2011-12-08 17:43 +0000
Re: Questions about LISP and Python. Ben Finney <ben+python@benfinney.id.au> - 2011-12-09 07:23 +1100
Re: Questions about LISP and Python. alex23 <wuwei23@gmail.com> - 2011-12-06 19:52 -0800
Re: Questions about LISP and Python. Rick Johnson <rantingrickjohnson@gmail.com> - 2011-12-07 20:14 -0800
Re: Questions about LISP and Python. alex23 <wuwei23@gmail.com> - 2011-12-05 23:02 -0800
Re: Questions about LISP and Python. Matt Joiner <anacrolix@gmail.com> - 2011-12-06 18:54 +1100
Re: Questions about LISP and Python. Alex Mizrahi <alex.mizrahi@gmail.com> - 2011-12-06 11:12 +0200
Re: Questions about LISP and Python. Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-07 10:14 +0000
Re: Questions about LISP and Python. Terry Reedy <tjreedy@udel.edu> - 2011-12-07 06:17 -0500
Re: Questions about LISP and Python. Neil Cerutti <neilc@norwich.edu> - 2011-12-07 13:16 +0000
csiph-web