freenode/#lisp - IRC Chatlog
Search
21:38:24
MetaYan
Xach: Is something wrong with the http://report.quicklisp.org/ generator? March 5th is the last one. And there are lots of errors since March 1st. Plus, you've dropped out from #quicklisp ;)
4:03:55
fitzsim
in core/meta.lisp, (named-readtables:defreadtable dummy (:dispatch-macro-char #\# #\_ #'dummy-reader) [...])
4:04:19
fitzsim
results in an error: SET-DISPATCH-MACRO-CHARACTER: #\# is not a dispatch macro character
4:15:26
fitzsim
it's in a #+clisp form, and when I try to run that form through SBCL, I see the same failure
4:15:35
Bike
i haven't used named readtables, but i think if you don't specify existing readtables to get definitions from the new readtable starts out empty
4:15:53
Bike
"An empty readtable is a readtable where each character's syntax is the same as in the _standard readtable_ except that each macro character has been made a constituent. Basically: whitespace stays whitespace, everything else is constituent." yeah ok.
4:17:59
Bike
oh, but it looks like it just uses this dummy readtable in addition to the standard one
4:28:11
beach
fitzsim: Do you have particular reasons for using CLISP? I am asking because I suspect not many people here use it, so help is harder to find.
4:35:17
Bike
but based on defreadtable's docstring i can see how not defining # as a dispatching macro character would cause problems, regardless of implementation
4:38:15
Bike
eck, named readtables does have to resort to some implementation internals to make an "empty" readtable. that's kind of unfortunate
5:14:59
asarch
If I have (:food tacos :drinks beer) how could I add :snacks pizza at the end of the list So I could get (:food tacos :drinks beer :snacks pizza)?
5:16:36
beach
asarch: But you need to be careful with that. You are often better off using APPEND and changing the variable containing the list.
6:12:35
markasoftware
nconc isn't guarantees to modify it in place, right? You have to do setf + nconc to be sure?
6:15:18
aggin
beach: I found out who you were talking about when you said yesterday "Who's the guy that said regex gives you 2 problems ? "
7:46:39
beach
markasoftware: I think NCONC is specified to modify the list, unless it is the empty list of course.
8:03:25
moon-child
markasoftware: nconc is defined in terms of rplacd, so it would have to be in-place
8:13:52
moon-child
not least because it's really well integrated with the rest of the language. And whitespace isn't significant, so you don't have to squish all the code together
8:15:23
aggin
what would be the best implementation of CASE that uses string= and also supports the OTHERWISE key ?
8:26:53
splittist
You can break a (cl-ppcre) regex into mulitple lines and provide line comments. That can reduce the write-only-ness of complex mangling.