<evdubs_>
afidegnum, if you're trying to decide which to choose, you may consider `#lang racket` and `(require racket/gui)`
evdubs_ is now known as evdubs
dimitarvp has joined #racket
<afidegnum>
ok, thanks,
dimitarvp has quit [Quit: Bye]
davidl has quit [Quit: WeeChat 2.1]
orivej has quit [Ping timeout: 272 seconds]
zipper has quit [Read error: Connection reset by peer]
zipper has joined #racket
<afidegnum>
hello, i m trying to build an HTML builder in a graphical way, so far i have read about the GUI toolkit and the racket/draw but i need more suggestion on how to go about it. I want to draw a rectangle which will generate a div layout containing css property of the size of that rectangle, and also a way to finally preview the output
<afidegnum>
i m trying to build an HTML builder in a graphical way, so far i have read about the GUI toolkit and the racket/draw but i need more suggestion on how to go about it. I want to draw a
<afidegnum>
sorry for the repetition, my mouse
orivej has joined #racket
pie_ has joined #racket
orivej has quit [Ping timeout: 268 seconds]
iyzsong has joined #racket
<zipper>
Sorry how did you guys say I can get a tuple in racket?
<soegaard>
vector
<zipper>
I'm trying to write functions like dequeue and pop which means I want to return a value and an updated list
<zipper>
soegaard: vector?
<soegaard>
well, depends on your definition of a tuple :-)
<zipper>
A pair of things
<zipper>
In this case a value and the updated list
<zipper>
if I try this with cons I just prepend the value
<soegaard>
(struct tuple (value list)) is one option that gives you accessors tuple-value and tuple-list
<soegaard>
(list value updated-list) is also an option - the accessors is first and second
<soegaard>
Finally if the issue is that you have a function that returns two values, then you can return two values directly without wrapping them.
<soegaard>
(values v l) will return the two values v and l
soegaard has quit [Quit: soegaard]
<zipper>
The problem with values is it's hard to use repeatedly
<zipper>
I'll use the tuple struct
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 244 seconds]
davidl has joined #racket
ZombieChicken has quit [Quit: WeeChat 2.5]
ubLIX has joined #racket
efm has quit [Read error: Connection reset by peer]
orivej has joined #racket
efm has joined #racket
Sgeo__ has joined #racket
manualcrank has joined #racket
Sgeo_ has quit [Ping timeout: 272 seconds]
Lowl3v3l has joined #racket
iyzsong has quit [Ping timeout: 252 seconds]
Sgeo_ has joined #racket
endformationage has joined #racket
ziyourenxiang_ has quit [Ping timeout: 272 seconds]
Sgeo__ has quit [Ping timeout: 244 seconds]
efm has quit [Quit: Konversation terminated!]
euhmeuh has left #racket [#racket]
zipper has quit [Ping timeout: 272 seconds]
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 245 seconds]
efm has joined #racket
zipper has joined #racket
zipper has quit [Ping timeout: 245 seconds]
ubLIX has quit [Quit: ubLIX]
ubLIX has joined #racket
afidegnum has quit [Ping timeout: 246 seconds]
Sgeo__ has quit [Read error: Connection reset by peer]
Sgeo__ has joined #racket
soegaard has joined #racket
vraid has quit [Quit: Leaving]
zipper has joined #racket
FreeFull has joined #racket
ubLIX has quit [Quit: ubLIX]
<zipper>
What's the difference between macros and hygenic macros?
* ermo
muses that the offensive answer must be "cleanliness"
<soegaard>
It's easy to shoot your self in the foot if you are using a macro system without hygiene.
<ermo>
"Hygienic macros are macros whose expansion is guaranteed not to cause the accidental capture of identifiers." says wikipedia.
<technomancy>
is a macro system that disallows non-gensym'd symbols used as identifiers considered "semi-hygenic" or ... how would you describe that?
<soegaard>
Yes, in short a system that supports hygienic macros makes it possible to write macros whose bindings are lexical.
<zipper>
Okay idk what hygiene is in this context
<soegaard>
In other words if a macro insert an identifier, the meaning of the identifer can be infered from the bindings where the macro is defined - not where the macro is used.
<zipper>
By lexical bindings you mean the definitions are going to exist in the scope and the enclosed scope
<zipper>
hmmm
<zipper>
An identifier is what is umm created with define, right?