Search
Friday, 20th of October 2017, 5:45:36 UTC
15:42:48
scymtym
stassats: are you also doing WITH-SLOTS?
16:11:46
stassats
with-accessors is particularly confusing, since it's not like with-slots
16:12:01
stassats
otherwise it's a rabbit hole of trying to fix all the macros and special forms
16:14:36
scymtym
it requires infrastructure
16:15:25
stassats
i want a different kind of infrastructure, "submit an error that confused you"
16:15:50
stassats
since what confuses us is a bit different
16:16:29
scymtym
that's true for error message
16:17:17
stassats
though i use with-accessors approximately never
16:18:17
scymtym
but the hundreds of instances of (unless (and (consp form) (eq (first form) ...)) (error ...)) are basically ad-hoc solutions to a pattern matching or parsing problem. so a pattern matcher would be the right infrastructure
16:19:21
scymtym
yes, but not with error messages and it doesn't bind match variables and it cannot handle repetition
16:20:36
stassats
(and the with-accessors fix was a response to https://www.reddit.com/r/lisp/comments/77cvt5/why_cant_i_car_my_accessor/ )
16:21:39
scymtym
and adding WITH-CURRENT-SOURCE-FORM so slime will highlight the right sub-form
16:22:10
scymtym
bummer that WITH-ACCESSORS doesn't work the way the person assumed
16:22:39
stassats
i've always found that that a bit strange
16:28:14
_death
maybe it was more prominent to use class-property naming style, and the variable name would just be property
Friday, 20th of October 2017, 17:45:36 UTC