<afidegnum>
is there a way to mix racket and emacs lisp code?
aw- has quit [Quit: Leaving.]
acarrico has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
refpga has quit [Ping timeout: 258 seconds]
refpga has joined #racket
<erkin>
afidegnum: How do you mean?
<samth>
afidegnum: for vector graphics, it sort of depends what you mean, but the `pict` library is vector graphics, as is the lower-level `racket/draw` library
<afidegnum>
erkin: while writing a racket, i want to triggers some functionalities belonging to emacs via elisp, i.e splitting a buffer into to or launching an elisp command.
<afidegnum>
i'm reading about `pict` now, nice and interesting :)
<erkin>
I don't see where Racket code comes into play there. Why not just use Emacs Lisp?
<afidegnum>
not all functionalities are available in emacs lisp, that's why i'm using racket
<erkin>
Racket is not a suitable language for extending Emacs. You can use Common Lisp functionality with the `cl' package.
<grym>
(called cl-lib, now)
<erkin>
Ah, good to know.
<grym>
(you'll get gently scolded as of 27.x as i have discovered just the other day)
<afidegnum>
Common lisp also had few challenges
badkins has joined #racket
Fare has quit [Ping timeout: 260 seconds]
badkins has quit [Ping timeout: 272 seconds]
phillbush has joined #racket
Fare has joined #racket
phillbush has quit [Remote host closed the connection]
refpga has quit [Ping timeout: 272 seconds]
refpga has joined #racket
endobson has joined #racket
acarrico has quit [Ping timeout: 246 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fredmanglis has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 264 seconds]
arpunk has quit [Read error: Connection reset by peer]
arpunk has joined #racket
erkin has quit [Quit: Ouch! Got SIGIRL, dying...]
erkin has joined #racket
YuGiOhJCJ has joined #racket
sauvin_ is now known as Sauvin
orivej has quit [Ping timeout: 260 seconds]
nullcone has joined #racket
endformationage has quit [Quit: WeeChat 2.9]
ullbeking_ has joined #racket
ullbeking has quit [Ping timeout: 240 seconds]
ullbeking_ is now known as ullbeking
<winny>
it seems struct names ought to be namespaced or have a naming convention to differentiate them from instances of the struct that might use the same name (since in both cases they are usually a noun -- e.g. (struct person (first-name last-name)) -> you might pass it into a function as "person" (lambda (person) #| do something with person |# ). The issue with rebinding "person" (or whatever the name
<winny>
of the struct might be) is (match-define (struct person (first-name last-name)) person) won't do what you expect. Instead you'll get an error on macro expansion like: struct*: not a structure definition
<winny>
I usually do cute names like "the-person" or "person1" but i feel like that steals a lot of attention from the reader, why the funny name, they might be thinking
endobson has joined #racket
endobson has quit [Client Quit]
fredmanglis has quit [Ping timeout: 265 seconds]
Fare has quit [Ping timeout: 260 seconds]
fredmanglis has joined #racket
aaaaaa has joined #racket
_whitelogger has joined #racket
endobson has joined #racket
aw- has joined #racket
refpga has quit [Read error: Connection reset by peer]
narimiran has joined #racket
refpga has joined #racket
wingsorc has quit [Quit: Leaving]
MetaHertz has joined #racket
epony has quit [Ping timeout: 258 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
Sgeo has quit [Read error: Connection reset by peer]