treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
phantomics has joined #commonlisp
McParen has joined #commonlisp
spdegabrielle has joined #commonlisp
attila_lendvai has quit [Ping timeout: 248 seconds]
elderK has joined #commonlisp
donleo has joined #commonlisp
Josh_2 has joined #commonlisp
<Josh_2>
Hi :wave:
treflip has quit [Ping timeout: 244 seconds]
JuanDaugherty has quit [Quit: JuanDaugherty]
McParen has left #commonlisp [#commonlisp]
bitspook has quit [Ping timeout: 260 seconds]
heisig has joined #commonlisp
JuanDaugherty has joined #commonlisp
ingeniot has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
pranav has quit [Remote host closed the connection]
gioyik has joined #commonlisp
ingeniot has quit [Ping timeout: 256 seconds]
Josh_2 has quit [Ping timeout: 252 seconds]
alternateved has joined #commonlisp
alternateved has quit [Remote host closed the connection]
edgar-rft_ has joined #commonlisp
alternateved has joined #commonlisp
edgar-rft has quit [Ping timeout: 252 seconds]
random-nick has joined #commonlisp
puke has joined #commonlisp
edgar-rft_ is now known as edgar-rft
<elderK>
Hey aeth, for your defstar, how did you go about parsing the lambda list? I've been trying several different ways and they all feel kind of meh or overkill.
chomwitt has joined #commonlisp
alcor has quit [Remote host closed the connection]
alternateved has quit [Remote host closed the connection]
spdegabrielle has quit [Quit: Connection closed for inactivity]
alternateved has joined #commonlisp
heisig has quit [Quit: Leaving]
elderK has quit [Quit: Sleep]
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pranav has joined #commonlisp
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pin56 has joined #commonlisp
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pranav has quit [Remote host closed the connection]
kathe has joined #commonlisp
yitzi has joined #commonlisp
kathe has quit [Quit: Leaving]
paddymahoney has quit [Ping timeout: 255 seconds]
paddymahoney has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
johnjaye has quit [Ping timeout: 272 seconds]
johnjaye has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
decweb has joined #commonlisp
amb007 has joined #commonlisp
alexander1 has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
josrr has joined #commonlisp
green has joined #commonlisp
yitzi has quit [Remote host closed the connection]
green__ has joined #commonlisp
gioyik has joined #commonlisp
pranav has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
shawnw has quit [Ping timeout: 252 seconds]
drewjose has quit [Quit: Ping timeout (120 seconds)]
gioyik has joined #commonlisp
drewjose has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
brokkoli_originl has quit [Ping timeout: 265 seconds]
skeemer has quit [Ping timeout: 252 seconds]
treflip has joined #commonlisp
treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
brokkoli_origin has joined #commonlisp
prokhor_ has quit [Ping timeout: 252 seconds]
gioyik has joined #commonlisp
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
gioyik has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
phantomics has quit [Ping timeout: 245 seconds]
phantomics has joined #commonlisp
attila_lendvai has joined #commonlisp
alexander1 has quit [Ping timeout: 265 seconds]
troojg has joined #commonlisp
char has joined #commonlisp
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Ping timeout: 260 seconds]
drewjose has quit [Ping timeout: 248 seconds]
drewjose has joined #commonlisp
<char>
Hey bike (or anyone else), in the ctype project, there is a comment that says "if a suffix of the "required" types includes NULL, those values are not actually required.". Do you have a source for that?
<char>
I see that is in the for THE, would that apply to VALUES used in FUNCTION as well? ctype seems to apply this rule at the parsing level.
<bike>
yes, declaring a function return type is equivalent to wrapping calls to that function in a THE form
<bike>
per the documentation for the FUNCTION type
<char>
Thank you so much!
<bike>
no problem
<char>
One more thing, so is there no way to specify that a function must return nil? It seems that ctype would always move the null type into optional. If you wrote (values null), it would parse as (values &optional null)
wacki has quit [Ping timeout: 252 seconds]
wacki has joined #commonlisp
<bike>
char: i don't think there is any standard way to say that a function returns exactly one nil. sbcl has a different interpretation and treats (values null &optional) as meaning that.
supercode has joined #commonlisp
<char>
Would you say that sbcl is non-conforming in that regard? or perhaps the spec is just too vauge.
<bike>
i don't like sbcl's interpretation, but the spec is self contraictory about values types anyway, so i can't blame sbcl for coming up with something that lets you write useful declarations
<bike>
self contradictory -> check out the page on the values type, and marvel at how unlike it is in THE
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
troojg has quit [Ping timeout: 272 seconds]
McParen has joined #commonlisp
<McParen>
hey #cl, what is the common way to replace str1 with str2 in a target string? (the lisp version of sed s/foo/bar/g)
<McParen>
there is substitute but only replaces one char for another char in a sequence, but is there a way to do this for substrigs?
<McParen>
there is "replace", but this only replaces strings of same length.
chomwitt has quit [Ping timeout: 252 seconds]
mathrick has quit [Ping timeout: 246 seconds]
char has quit [Ping timeout: 260 seconds]
<bike>
McParen: i'd just use ppcre
<bike>
a simpler function to do it would be simple to write, alternatiely
<McParen>
ideally, somebody would already have written it in all the years lisp exists, but not just a string replacement, but a seqeunce version of substitute.