#lisp - Tue 27 Mar 2007 between 20:52 and 21:22



Dr^Nickhrmm
I need to be more comfortable with sb-alien.
Lavenderlawl
Dr^NickI have an HIViewRef and I need to pass an HIViewRef*
rtoym_Yay. quad-double float stuff seems to be working, more or less.
lisppasteCin pasted "Just wondering if anybody ever uses an if like this, or whether people just use a combination of WHEN and UNLESS?" at http://paste.lisp.org/display/38823
nyefDr^Nick: Have an SB-ALIEN:ADDR . On the house.
Dr^Nickthanks
yeah, just realized :)
still one problem left
lisppasteCin annotated #38823 with "Zing!" at http://paste.lisp.org/display/38823#1
rahulCin: that's practically the same syntax as COND
Cinrahul, well sort of
rahulthe parens are arranged slightly differently and you have an extra "t"
Cinextra "t"?
rahulin cond, you do
you "would", rather
Ciner, ok
rahuljust use cond. it's so similar that it's not worth adding extra stuff to your code
one more operator someone needs to learn to be able to read it
Cinwell, I'm contrasting it to using when and unless, not cond. but okay
rahulbut it's almost identical to cond
whether _you_ saw it at first or not :)
Cinalmost identical apart from it only has two conditions, yes
rahulright, so it's cond with less flexibility but as much syntax
rtoym_Just use cond. Or when. Or unless, as appropriate.
rahulrelative to when or unless, your syntax buys you nothing
Cinthanks for your advice
rahulthe point of when and unless are to remove a branch, which can help remove a level of nesting
Dr^Nickhm
eructatethey abbreviate (if c (progn . b)) or (if c nil (progn . b))
nyefxif and yif are some of the most bruciotic macros I've seen in a while...
Cinwhen and unless seem to make code easier to read, too
rahulCin: right, because they're simple
if for intermediate cases (very narrow set), and cond for the complex stuff.
and if you're using progn in an if, a cond will probably be clearer and have less deep indentation
Dr^Nickgr.
eructateor if you're PG, you put an if inside a progn inside an if...
CinPG?
XachPaul Graham favors IF

Page: 3 10 17 24 31 38 45 

IrcArchive