cwebber has joined #racket
gproto23 has quit [Ping timeout: 256 seconds]
badkins has joined #racket
ur5us has quit [Ping timeout: 256 seconds]
unyu has joined #racket
rudybot_ is now known as rudybot
the_lisp_nationa has joined #racket
s-liao has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
s-liao has joined #racket
badkins has quit [Ping timeout: 250 seconds]
schulze has quit [Ping timeout: 240 seconds]
TCZ has joined #racket
TCZ has quit [Quit: Leaving]
badkins has joined #racket
capfredf has joined #racket
badkins has quit [Ping timeout: 256 seconds]
capfredf has quit [Ping timeout: 256 seconds]
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
capfredf has joined #racket
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
badkins has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
badkins has quit [Ping timeout: 256 seconds]
s-liao has joined #racket
ec has quit [Ping timeout: 276 seconds]
szkl has quit [Quit: Connection closed for inactivity]
badkins has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
badkins has quit [Ping timeout: 250 seconds]
libertyprime has joined #racket
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
s-liao has quit [Quit: Client closed]
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #racket
Everything has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
ur5us has joined #racket
mon_aaraj has joined #racket
codingquark has quit [Ping timeout: 256 seconds]
badkins has joined #racket
codingquark has joined #racket
capfredf has joined #racket
libertyprime has quit [Ping timeout: 256 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
badkins has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #racket
nan` has joined #racket
ur5us has quit [Ping timeout: 240 seconds]
s-liao has joined #racket
libertyprime has joined #racket
nan` has quit [Quit: leaving]
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
skapata has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
capfredf has joined #racket
Everything has quit [Quit: leaving]
capfredf has quit [Ping timeout: 256 seconds]
skapata has quit [Remote host closed the connection]
s-liao has quit [Quit: Client closed]
s-liao has joined #racket
Everything has joined #racket
Everything has left #racket [#racket]
gproto23 has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
libertyprime has quit [Ping timeout: 256 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
libertyprime has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
bremner has quit [Remote host closed the connection]
bremner has joined #racket
cynomys has quit [Ping timeout: 256 seconds]
Avichi has quit [Quit: Client closed]
capfredf has joined #racket
capfredf has quit [Ping timeout: 250 seconds]
Avichi has joined #racket
TCZ has joined #racket
ec has joined #racket
szkl has joined #racket
s-liao has quit [Quit: Client closed]
badkins has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
skapata has joined #racket
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #racket
TCZ has quit [Quit: Leaving]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
Avichi has quit [Ping timeout: 256 seconds]
ec has quit [Ping timeout: 276 seconds]
capfredf has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
mon_aaraj has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
cwebber has quit [Ping timeout: 250 seconds]
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #racket
schulze has joined #racket
mon_aaraj has quit [Ping timeout: 245 seconds]
mon_aaraj has joined #racket
mon_aaraj has quit [Remote host closed the connection]
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
ur5us has joined #racket
libertyprime has quit [Remote host closed the connection]
mon_aaraj has quit [Ping timeout: 260 seconds]
mon_aaraj has joined #racket
maname has joined #racket
<maname> Hi, racket newbie incoming!  I'm having trouble to understand the following code. In particular, I don't understand why the code begins with "#s((ExpressionStatement ..." rather than with one parenthesis "#s(ExpressionStatement ..." . Code: https://pkos98.dev/storage/ast.rkt?render=code
cynomys has joined #racket
skapata has quit [Read error: Connection reset by peer]
capfredf has joined #racket
badkins has quit [Remote host closed the connection]
mon_aaraj has quit [Ping timeout: 250 seconds]
mon_aaraj has joined #racket
capfredf has quit [Remote host closed the connection]
badkins has joined #racket
capfredf has joined #racket
<ifs[m]> Hey maname! This doesn't look like "vanilla" Racket to me, where is that from ? :)
<ifs[m]> `(ExpressionStatement Statement 0 Term 1)` might evaluating to a function, which is then applied to what follows ?
capfredf has quit [Ping timeout: 256 seconds]
<maname> ifs[m]: you are right, actually it is the string representation of an AST structure from the parsing lib.
ur5us has quit [Ping timeout: 250 seconds]
<maname> So, usually transparent structs are represented by "#s(StructName arg0...argN)"
<ifs[m]> * 1)` might be evaluating to
mon_aaraj has quit [Ping timeout: 250 seconds]
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
<tonyg> maname: you've got it. It's a prefab struct - but it's one that is a subtype of another struct.
skapata has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
<tonyg> rudybot: eval (struct base (field1 field2) #:prefab)
<rudybot> tonyg: Done.
<tonyg> rudybot: eval (struct derived base (field3 field4) #:prefab)
<rudybot> tonyg: Done.
<tonyg> rudybot: eval (derived 1 2 3 4)
<rudybot> tonyg: ; Value: '#s((derived base 2) 1 2 3 4)
<tonyg> maname: so the prefab key of the struct is usually a symbol, when there's no inheritance, but can be a list describing the various level of inheritance and which fields belong to which level.
<maname> many thanks!!
monaaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
capfredf has joined #racket
gproto23 has quit [Ping timeout: 256 seconds]
vraid has quit [Remote host closed the connection]
vraid has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]