morte_ has quit [Remote host closed the connection]
morte_ has joined #racket
shawnw has joined #racket
skapata has joined #racket
morte_ has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
morte_ has joined #racket
xgqt has quit [Quit: WeeChat 3.6]
xgqt has joined #racket
kori has quit [Quit: zzz]
kori has joined #racket
shawnw has quit [Ping timeout: 246 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 248 seconds]
morte_ has quit [Remote host closed the connection]
morte_ has joined #racket
msiism has joined #racket
CodeSpelunker has joined #racket
<msiism>
I have a function that shifts back calendar dates.
<msiism>
Currently, it takes a list of the form '(start_year start_month start_day) as its first argument and then 3 numbers: year_count, month_count, day_count.
<msiism>
I's like to have the arguments in more consistent form, so I made the 2nd argument a list of counts.
<msiism>
But then I realized that this means tearing apart the list and then putitng it back together on every recursion.
<msiism>
Now, another way to have arguments of a consistent type is making them all numbers.
<msiism>
Like (backshift-date start_year start_month start_day year_count month_count day_count).
<msiism>
I wonder whether there's aynthing wring with that approach.
<msiism>
s/wring/wrong/
<msiism>
I mean, it would reduce the amount of code quite a bit.
eli_oat has joined #racket
eli_oat has quit [Quit: Zzzzzzzzzz]
cwebber has quit [Read error: Connection reset by peer]
CodeSpelunker has quit [Ping timeout: 255 seconds]
morte_ has quit [Remote host closed the connection]
morte_ has joined #racket
eli_oat has joined #racket
<msiism>
I think I'll go with two lists, though. This is because it offers a) a way to group arguments meaningfully, b) a way to use short referers for those arguments.
<msiism>
Should I ever need to add the ability to shift back by hours and minutes as well, that will be quite important.
msiism has left #racket [Konversation vaporized.]
CodeSpelunker has joined #racket
jeosol has quit [Quit: Client closed]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
CodeSpelunker has quit [Ping timeout: 268 seconds]
morte_ has quit [Remote host closed the connection]