Not being a huge lisp person, are there lazy-evaluating lists in lisp? So that I could define the tabstop sequence to be a list that would continually be evaluated, but only as far as the calling function was asking for (like Haskell)? Otherwise, there is still a finite end to the list even if I can easily generate a ridiculously long sequence automatically.
I don't believe there's anything in the Common Lisp standard for it, but I think lazy lists should be implementable with macros.
Re:From TextMate to Vim
by lallysingh on Monday August 03, 2009 @11:20PM
(#740588)
Nope, strict eval only. Just define a max, and if you hit it, raise it.
Even better, if you don't like the way anything's indented, move the cursor to that spot and hit C-c C-o and it'll tell you why it's indented that line that way, and you can adjust those parts as you wish.
If you're not in cc-mode, then.. it's lisp. Repeating sequences of multiples of 4 are pretty easy to write in a function that generates them.