morte has quit [Read error: Connection reset by peer]
morte has joined #racket
skapata has quit [Ping timeout: 240 seconds]
shawnw has joined #racket
skapata has joined #racket
ec has joined #racket
shawnw has quit [Ping timeout: 264 seconds]
morte_ has joined #racket
morte_ has quit [Remote host closed the connection]
shawnw has joined #racket
morte_ has joined #racket
morte_ has quit [Remote host closed the connection]
skapata has quit [Read error: Connection reset by peer]
mdhughes has quit [Ping timeout: 250 seconds]
mdhughes has joined #racket
Tuplanolla has joined #racket
hdbbdh has joined #racket
cow_2001 has quit [Quit: cow_2001]
cow_2001 has joined #racket
hdbbdh has quit [Ping timeout: 264 seconds]
hdbbdh has joined #racket
<hdbbdh>
A easy list-char program: http://pasterack.org/pastes/26095 and I have three questions: 1. Is there a way to merge the "display" function into the else-expr of if; 2. If 1. is OK, whether the solution will maintian tail recursion optimization; 3. Is there a better way to perform this task in tail-recursion style?
<hdbbdh>
Any help is greatly appreciated
<bremner>
hdbbdh: you can use a (begin ...) expression where you want a seqence of expressions for else-expr
<bremner>
(if ... (void) ... ) can be replaced with (unless ... ...)
<hdbbdh>
Alright, I haven't yet learnt (begin ...) lol
<hdbbdh>
So if I use begin ..., will it maintian tail recursion optimization?
<bremner>
yes, if the recursion is the last expression in the begin. _maybe_ also if not
<bremner>
stepping in the debugger can help check
<hdbbdh>
Is debugger available in VS Code?
<hdbbdh>
Or I should use Drracket instead?
<bremner>
ah, I meant in DrRacket. I don't know about VSCode
<bremner>
drracket can revert files if they are editted externally, so you can use it with another editor (I do this with emacs)
<hdbbdh>
I see. Thank you very much.
<bremner>
welcome
hdbbdh has quit [Ping timeout: 264 seconds]
shawnw has quit [Ping timeout: 264 seconds]
munksgaard has quit [Server closed connection]
munksgaard has joined #racket
m1dnight has quit [Quit: WeeChat 3.8]
m1dnight has joined #racket
m1dnight has quit [Quit: WeeChat 3.8]
m1dnight has joined #racket
migas has joined #racket
<migas>
Hi. I am trying to create some nice TUI app but:
<migas>
charterm is black and white
<migas>
racket-ncurses in not maintained anymore
<migas>
ansi-colors is just to use some text colors
<migas>
what do you recommend?
HerlockSholmes has joined #racket
winny has left #racket [WeeChat 3.7.1]
morte_ has joined #racket
morte_ is now known as monkey_
morte has quit [Ping timeout: 246 seconds]
morte has joined #racket
monkey_ has quit [Ping timeout: 246 seconds]
skapata has joined #racket
morte has quit [Ping timeout: 264 seconds]
morte has joined #racket
monkey_ has joined #racket
mjt128 has joined #racket
mjt128 has quit [Ping timeout: 260 seconds]
morte_ has joined #racket
monkey_ has quit [Remote host closed the connection]
ec has quit [Remote host closed the connection]
ec has joined #racket
morte_ has quit [Ping timeout: 246 seconds]
morte_ has joined #racket
morte_ has quit [Remote host closed the connection]