Search
18:17:15
jackdaniel
I'd even say taht for exported interfaces you should have defgeneric for accessors/readers too
18:18:01
jackdaniel
but that is, of course, opinionated
18:19:00
pfdietz
SBCL did not issue style warnings for those in the absence of defgeneric, but the documentation would be good.
18:20:56
jackdaniel
I'm saying that, because with time readers may deteriorate and become normal methods anyway, but the interface doesn't change
18:22:13
jcowan
Makes sense to me. For every method a defgeneric, even methods not created by defmethod.
18:25:11
shka_
rarely i see this channel in such agreement
18:31:02
jcowan
rarely are such simple and obvious questions asked by a tolerated ignoramus
18:31:43
shka_
if it happens again i will assume that we are starting to form a hive mind
18:32:22
pfdietz
The interesting style question to me is: what to name these accessors? The potential for collisions of short names is high.
18:33:11
shka_
pfdietz: usually people name it like slot itself
18:33:25
shka_
so slot size (or %size) has accessor size
18:33:33
pfdietz
Which just pushes the question back one step.
18:34:04
shka_
personally i name accessors access-size, read-size, write-size but this is NOT mainstream
18:34:28
pfdietz
FOO-OF is another possibility.
18:34:36
jcowan
I guess that within the scope of an app the accessors should be named after the domain objects of the design
18:35:04
pfdietz
ADD ONE TO COBOL YIELDING COBOL, the OO extension.
18:45:55
Xach
I consider the notion that they are associated with a slot to be an implementation detail
18:49:29
luis
The slot is a cache for the accessor and caches are the root of all evil. :-)
19:06:36
pfdietz
I often use slots as exactly that, populating the cache with a slot-unbound method.
19:40:58
jcowan
pfdietz: s/YIELDING/GIVING
19:41:11
jcowan
presumably they did not trust people to spell YIELDING correctly
22:28:41
no-defun-allowed
okay i finally realised something very very stupid about disassembling car/cdr
22:29:20
no-defun-allowed
on sbcl (disassemble 'cdr) movs [rcx+1] and car movs [rcx-7]
22:29:54
no-defun-allowed
it's so you don't have to zero out the tag bits i think
23:14:14
pfdietz
That's right. And the low order bits of fixnums are zero, so addition and subtraction work just fine.
0:56:46
sjl
Is there a way to tell FORMAT to ignore an argument (inside ~{~})?
0:57:08
sjl
cl-ppcre:all-matches returns a list of (start1 end1 start2 end2 start3 end3 ...) but I only want to print the starts
0:58:03
specbot
http://www.lispworks.com/reference/HyperSpec/Body/22_cga.htm
0:58:05
Bike
should let you skip around
1:16:30
sjl
Hmm, is there any way to get cl-ppcre to find overlapping matches?
1:16:48
sjl
(ppcre:all-matches-as-strings "a.." "aabc") ; => ("aab")
1:18:45
Bike
"A common trick is to use capturing technique inside an unanchored positive lookahead" oh god, what the hell
1:21:28
no-defun-allowed
what the hell is this
1:22:17
no-defun-allowed
oh, regexps
1:26:50
sjl
http://paste.stevelosh.com/89de123b33b7efe1e927d9c9dfbdb30dd89d5819 will let me move on with my life I guess
4:39:45
beach
Good morning everyone!