Re: [racket-users] Help with pretty printing

2019-04-02 Thread 'John Clements' via Racket Users
One note about this: it’s not really a question about indentation, which isn’t ludicrously hard, it’s a question about inserting linebreaks, which IMHO is much harder. Specifically, you’re asking for a pretty-printer that treats keywords differently from other items. Have you looked through all

[racket-users] Help with pretty printing

2019-04-02 Thread Stephen Foster
Hi all, Suppose, I have a datum that represents valid racket code, like '(test #:a a #:b b #: c). I'd love to render (arbitrarily deeply nested) datums like this to a string that displays like this: (test #:a a #:b b #:c c) Pretty printing almost works: (displayln (pretty-format

Re: [racket-users] Error location in test submodules

2019-04-02 Thread Eric Griffis
On Tue, Apr 2, 2019 at 1:04 PM Tom Gillespie wrote: > > Are you using emacs racket-mode? I am, almost exclusively. Exception and check failure locations can be a pain, but they work in general. > On Tue, Apr 2, 2019 at 3:41 PM zeRusski wrote: >> >> If I have many test chunks spread around my co

Re: [racket-users] Error location in test submodules

2019-04-02 Thread Tom Gillespie
Are you using emacs racket-mode? I have experience this issue only in that mode since it does not (to my knowledge) implement all the error anchoring features of DrRacket. If you run in DrRacket the errors and contract violations should be highlighted as in the screengrab below. Best, Tom On Tue,

[racket-users] Error location in test submodules

2019-04-02 Thread zeRusski
I am a big fan of having tests alongside code so (module+ test ...) is magic. The only annoyance I've been running into lately is error reporting. If I have many test chunks spread around my code and some code change throws an exception or a contract violation it is impossible to tell which tes

[racket-users] The distribution of numbers returned by (random)

2019-04-02 Thread polarishehn
Hello everyone, The specification of `random` function with zero arguments is only that a random inexact real numbers between 0 and 1 is generated. I have two quick questions about it, 1. Will all random inexact real numbers between 0 and 1 be eventually generated? 2. What's the distribution o

[racket-users] First Call for Papers: 12th ACM SIGPLAN International Conference on Software Language Engineering (SLE 2019)

2019-04-02 Thread Andrei Chis
Call for Papers: 12th ACM SIGPLAN International Conference on Software Language Engineering (SLE 2019) co-located with SPLASH 2019 Athens, Greece October 21-22, 2019 https://conf.researchr.org/home/sle-2019 http://www.sleco