Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-22 Thread Glenn Hoetker
Thank you, everyone!! I've gained some nice big picture lessons and appreciate the welcome to the community. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
And I should heed my own advice about testing. On Wed, Jun 21, 2017 at 8:40 PM, Jon Zeppieri wrote: > > #lang at-exp racket > > (define (normalize-keywords in) > (regexp-replace* >@pregexp|{Keywords ?= ?\{\s*([^}]*)\}}| >in >(λ (_ s) You may have noticed that

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
On Wed, Jun 21, 2017 at 8:40 PM, Jon Zeppieri wrote: > > #lang at-exp racket > > ;; normalize-keywords: string? -> string? > #lang at-exp racket > Sorry, I made some bad edits here. Should have been: #lang at-exp racket ;; normalize-keywords: string? -> string? (define

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
Hi Glenn, This is pretty good! I added some remarks below: On Wed, Jun 21, 2017 at 3:48 PM, Glenn Hoetker wrote: > > ;;; > #lang racket > > (define in (open-input-file "/Users/me/BibDeskPapers/oldBib.bib")) > (define

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Deren Dohoda
Hi Glenn, Because of the submodule system it's not necessarily a good idea to put running code in the file directly. If you want something to run when the file is the main file (e.g. run in drracket) you can use (module* main #f ...). This way (module+ test ...) doesn't execute these things, and

[racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Glenn Hoetker
With help from this group, I've written my first baby-program in Racket and would really appreciate any feedback on how to make it more idiomatic, efficient and well-formatted (I struggle with where to break lines). Thank you in advance. The purpose is to fix the irregular capitalization of