00:10
catonano_ has joined #racket
00:13
catonano has quit [Ping timeout: 246 seconds]
00:13
catonano_ is now known as catonano
00:16
lbeckman314 has joined #racket
00:50
_whitelogger has joined #racket
01:07
vraid has quit [Remote host closed the connection]
01:20
efm has quit [Ping timeout: 246 seconds]
01:28
efm has joined #racket
01:32
TCZ has quit [Quit: Leaving]
01:42
orivej has quit [Ping timeout: 264 seconds]
02:19
pilne has quit [Quit: Why is the alphabet in that order? Is it because of that song?]
02:20
ecraven- has joined #racket
02:24
jmiven_ has joined #racket
02:28
jmiven has quit [*.net *.split]
02:28
und-l-t-d[m] has quit [*.net *.split]
02:28
jackhill has quit [*.net *.split]
02:28
m1dnight_ has quit [*.net *.split]
02:28
cky has quit [*.net *.split]
02:28
ecraven has quit [*.net *.split]
02:28
ecraven- is now known as ecraven
02:30
wingsorc has quit [Quit: Leaving]
02:32
notzmv has quit [Ping timeout: 246 seconds]
02:32
camlriot42 has quit [Ping timeout: 252 seconds]
02:32
deselby has quit [Ping timeout: 256 seconds]
02:32
psiperator[m] has quit [Ping timeout: 256 seconds]
02:32
sciamano has quit [Ping timeout: 244 seconds]
02:32
olavx200 has quit [Ping timeout: 240 seconds]
02:37
BitPuffin has quit [Ping timeout: 244 seconds]
02:37
juanfra_ has quit [Ping timeout: 260 seconds]
03:06
juanfra_ has joined #racket
03:06
BitPuffin has joined #racket
03:07
libertyprime has quit [Ping timeout: 256 seconds]
03:07
olavx200 has joined #racket
03:07
sciamano has joined #racket
03:10
und-l-t-d[m] has joined #racket
03:11
psiperator[m] has joined #racket
03:12
efm has quit [Ping timeout: 258 seconds]
03:14
deselby has joined #racket
03:18
libertyprime has joined #racket
03:27
efm has joined #racket
03:31
KindTwo has joined #racket
03:32
KindOne has quit [Ping timeout: 260 seconds]
03:35
KindTwo is now known as KindOne
03:38
badkins has joined #racket
03:42
badkins has quit [Ping timeout: 246 seconds]
03:43
libertyprime has quit [Ping timeout: 246 seconds]
03:44
lbeckman314 has quit [Ping timeout: 260 seconds]
03:57
dddddd has quit [Ping timeout: 265 seconds]
04:00
libertyprime has joined #racket
04:24
libertyprime has quit [Quit: leaving]
04:32
Sgeo has quit [Read error: Connection reset by peer]
04:34
efm has quit [Ping timeout: 272 seconds]
04:42
endformationage has quit [Quit: WeeChat 2.6]
04:47
efm has joined #racket
05:17
badkins has joined #racket
05:22
badkins has quit [Ping timeout: 264 seconds]
05:35
narimiran has joined #racket
06:06
Sgeo has joined #racket
06:25
sword865 has joined #racket
06:28
rgherdt has joined #racket
06:29
corpix has quit [Remote host closed the connection]
06:31
corpix has joined #racket
06:32
dmiles has quit [Ping timeout: 256 seconds]
06:33
dmiles has joined #racket
07:18
badkins has joined #racket
07:23
badkins has quit [Ping timeout: 258 seconds]
07:28
idstam has joined #racket
07:29
jshap has quit [Ping timeout: 272 seconds]
07:51
Sgeo has quit [Read error: Connection reset by peer]
07:52
jshap has joined #racket
08:31
jmiven_ is now known as jmiven
08:39
true-grue has joined #racket
09:17
ArthurStrong has quit [Ping timeout: 246 seconds]
09:17
SGASAU has quit [Remote host closed the connection]
09:19
SGASAU has joined #racket
09:19
badkins has joined #racket
09:24
badkins has quit [Ping timeout: 260 seconds]
09:30
orivej has joined #racket
09:32
nullcone has quit [Quit: Connection closed for inactivity]
09:57
catonano has quit [Quit: catonano]
09:59
true-grue has quit [Quit: Leaving]
10:15
catonano has joined #racket
10:17
<
und-l-t-d[m] >
I'm curious why `struct/contract` doesn't allow #:constructor-name
10:20
badkins has joined #racket
10:25
badkins has quit [Ping timeout: 256 seconds]
10:41
efm has quit [Remote host closed the connection]
10:42
efm has joined #racket
10:47
iyzsong has joined #racket
11:07
badkins has joined #racket
11:09
TCZ has joined #racket
11:42
dddddd has joined #racket
11:55
badkins has quit [Remote host closed the connection]
11:56
badkins has joined #racket
12:00
badkins has quit [Ping timeout: 246 seconds]
12:04
TCZ is now known as DoomSlayer2020
12:05
orivej has quit [Ping timeout: 246 seconds]
12:11
badkins has joined #racket
12:40
DoomSlayer2020 has quit [Quit: Leaving]
12:46
camelCaser has quit [Ping timeout: 246 seconds]
12:47
camelCaser has joined #racket
12:58
orivej has joined #racket
13:13
efm has quit [Ping timeout: 260 seconds]
13:32
tonyg has quit [Quit: leaving]
13:40
badkins has quit []
14:00
iyzsong has quit [Ping timeout: 260 seconds]
14:21
Sgeo has joined #racket
14:25
tilpner has quit [Ping timeout: 272 seconds]
14:30
davidl_ has quit [Quit: WeeChat 2.7.1]
15:23
KindTwo has joined #racket
15:23
TCZ has joined #racket
15:23
KindOne has quit [Ping timeout: 272 seconds]
15:27
KindTwo is now known as KindOne
15:44
jackhill has joined #racket
15:44
cky has joined #racket
15:45
m1dnight_ has joined #racket
16:48
lbeckman314 has joined #racket
16:54
sword865 has quit [Quit: Connection closed for inactivity]
17:09
srandon111 has joined #racket
17:11
nebunez has joined #racket
17:15
ArneBab has joined #racket
17:28
TCZ has quit [Quit: Leaving]
17:49
wingsorc has joined #racket
18:06
ArneBab has quit [Ping timeout: 260 seconds]
18:07
acarrico has quit [Ping timeout: 260 seconds]
18:16
sauvin has quit [Ping timeout: 256 seconds]
18:19
selimcan has joined #racket
18:26
Sgeo has quit [Read error: Connection reset by peer]
18:30
selimcan has quit [Quit: Leaving]
18:32
sagax has quit [Remote host closed the connection]
18:41
psiperator[m] has quit [Ping timeout: 240 seconds]
18:41
sciamano has quit [Ping timeout: 240 seconds]
18:41
olavx200 has quit [Ping timeout: 260 seconds]
18:42
BitPuffin has quit [Ping timeout: 256 seconds]
18:42
juanfra_ has quit [Ping timeout: 244 seconds]
18:42
deselby has quit [Ping timeout: 260 seconds]
18:42
und-l-t-d[m] has quit [Ping timeout: 260 seconds]
19:02
Sgeo has joined #racket
19:04
ArthurStrong has joined #racket
19:05
KindOne has quit [Ping timeout: 256 seconds]
19:05
KindTwo has joined #racket
19:10
KindOne has joined #racket
19:11
KindTwo has quit [Ping timeout: 272 seconds]
19:17
KindOne has quit [Ping timeout: 256 seconds]
19:20
und-l-t-d[m] has joined #racket
19:23
zig has quit [Ping timeout: 264 seconds]
19:25
lbeckman314 has quit [Read error: Connection reset by peer]
19:28
bonz060 has joined #racket
19:30
ArthurStrong has quit [Read error: Connection reset by peer]
19:32
pierpal has joined #racket
19:34
orivej_ has joined #racket
19:34
tilpner has joined #racket
19:34
orivej has quit [Ping timeout: 272 seconds]
19:44
xsperry has joined #racket
19:52
deselby has joined #racket
19:52
BitPuffin has joined #racket
19:52
psiperator[m] has joined #racket
19:52
juanfra_ has joined #racket
19:52
olavx200 has joined #racket
19:52
sciamano has joined #racket
20:05
pierpal has quit [Ping timeout: 246 seconds]
20:14
KindOne has joined #racket
20:20
pierpal has joined #racket
20:35
pierpal has quit [Ping timeout: 272 seconds]
20:46
narimiran has quit [Ping timeout: 260 seconds]
20:51
endformationage has joined #racket
20:51
stagboot has joined #racket
21:01
SGASAU has quit [Remote host closed the connection]
21:01
SGASAU has joined #racket
21:07
<
greghendershott >
und-l-t-d[m]: I don't know why. Maybe the name doesn't work well with contract blame error messages?
21:08
<
greghendershott >
I've never really understood why `#:construct-name` exists at all. It doesn't feel like a must-have feature.
21:08
<
greghendershott >
i.e. why not just name the struct differently, and/or rename the constructor when provide-ing it if you want?
21:09
<
greghendershott >
So if I were implementing `struct/contract`, I might skip that because why bother. :)
21:09
<
greghendershott >
But I didn't implement it, so, I don't know.
21:10
<
greghendershott >
`struct` does have some options, like auto init fields, that seem not used much or at all, at least in modern Racket?
21:10
<
greghendershott >
Well that's anecdotal. Not used much in Racket source I've read, which is hardly some exhaustive sample. :)
21:36
zmt01 has joined #racket
21:41
zmt00 has quit [Ping timeout: 260 seconds]
21:42
<
friscosam >
struct does feel like it has a kitchen-sink of options
21:43
<
friscosam >
Which I'm guessing makes it hard to make extensions/variations on how it works.
21:43
KindOne has quit [Ping timeout: 272 seconds]
21:44
rgherdt has quit [Remote host closed the connection]
21:47
KindOne has joined #racket
21:55
KindTwo has joined #racket
21:56
KindOne has quit [Ping timeout: 265 seconds]
21:59
KindTwo is now known as KindOne
22:19
sagax has joined #racket
22:48
pierpal has joined #racket
22:52
pierpal has quit [Ping timeout: 260 seconds]
22:55
<
stagboot >
can anyone write a macro version of (define (f . xs) (let ([ys (map add1 xs)]) ys)) using syntax-parse? i'd be astounded & humbled.
22:56
SGASAU has quit [Ping timeout: 256 seconds]
22:58
orivej_ has quit [Ping timeout: 252 seconds]
22:59
orivej has joined #racket
23:02
<
friscosam >
Not sure I follow, do you mean a macro that takes some number of terms and makes a list with add1 applied to each term?
23:02
<
stagboot >
indeed, i do!
23:04
<
stagboot >
i've tried so many ways to write it, but they've all failed for different reasons, so i can't just say "here's the error, right here."
23:05
<
friscosam >
(define-syntax-rule (add1* e ...) (list (add1 e) ...))
23:06
<
friscosam >
without syntax/parse tho
23:06
pierpal has joined #racket
23:07
<
friscosam >
rudybot: eval (define-syntax-rule (add1* e ...) (list (add1 e) ...)) (add1* 2 3 4 5 6 7)
23:07
<
rudybot >
friscosam: your sandbox is ready
23:07
<
rudybot >
friscosam: ; Value: '(3 4 5 6 7 8)
23:16
pierpal has quit [Read error: Connection reset by peer]
23:22
<
stagboot >
friscosam: true, yes that works. i was unclear; i should've specified that use of the let block (or an alternative like with-syntax) is required; that's what makes it tricky.
23:25
<
stagboot >
actually, hold on. i don't even understand how the implementation you gave works; it seems that add1 is being applied to a list, even though i thought it only expects a number?
23:33
efm has joined #racket