| Dr^Nick | hrmm I need to be more comfortable with sb-alien. |
| Lavender | lawl |
| Dr^Nick | I have an HIViewRef and I need to pass an HIViewRef* |
| rtoym_ | Yay. quad-double float stuff seems to be working, more or less. |
| lisppaste | Cin 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 |
| nyef | Dr^Nick: Have an SB-ALIEN:ADDR . On the house. |
| Dr^Nick | thanks yeah, just realized :) still one problem left |
| lisppaste | Cin annotated #38823 with "Zing!" at http://paste.lisp.org/display/38823#1 |
| rahul | Cin: that's practically the same syntax as COND |
| Cin | rahul, well sort of |
| rahul | the parens are arranged slightly differently and you have an extra "t" |
| Cin | extra "t"? |
| rahul | in cond, you do you "would", rather |
| Cin | er, ok |
| rahul | just 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 |
| Cin | well, I'm contrasting it to using when and unless, not cond. but okay |
| rahul | but it's almost identical to cond whether _you_ saw it at first or not :) |
| Cin | almost identical apart from it only has two conditions, yes |
| rahul | right, so it's cond with less flexibility but as much syntax |
| rtoym_ | Just use cond. Or when. Or unless, as appropriate. |
| rahul | relative to when or unless, your syntax buys you nothing |
| Cin | thanks for your advice |
| rahul | the point of when and unless are to remove a branch, which can help remove a level of nesting |
| Dr^Nick | hm |
| eructate | they abbreviate (if c (progn . b)) or (if c nil (progn . b)) |
| nyef | xif and yif are some of the most bruciotic macros I've seen in a while... |
| Cin | when and unless seem to make code easier to read, too |
| rahul | Cin: 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^Nick | gr. |
| eructate | or if you're PG, you put an if inside a progn inside an if... |
| Cin | PG? |
| Xach | Paul Graham favors IF |