Re: [racket-users] racket users fight for their right to colon keywords

2015-10-24 Thread Neil Van Dyke
Greg Hendershott wrote on 10/24/2015 10:43 AM: p.s. If people read that (even just section 7.7), and there's still a debate? Then probably the only resolution would be a compromise that leaves everyone equally unhappy. Like say :#:keyword:#: ;) I linked the paper on Oct 15, though it got lost

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-24 Thread Greg Hendershott
On Fri, Oct 23, 2015 at 2:58 PM, Anthony Carrico wrote: > but seriously Asumu mentioned > Flatt and Barzilay's "Keyword and optional arguments in PLT Scheme" on > irc last night: > http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.162.17 > The paper illuminates the

Re: [racket-users] Probabilities in log-space and rounding errors

2015-10-24 Thread Laurent
I guess one should just try to use log1p instead of log(1+x), but I'm not sure how lg+ could be defined with log1p. Note also that lg1+ is defined in terms of log1p (by first exponentiating x). On Thu, Oct 22, 2015 at 1:41 PM, Alex Knauth wrote: > lg+ and lg- are defined

Re: [racket-users] Getting the "require" syntax arrows to work right

2015-10-24 Thread Alexis King
Aha, yes, that seems to work. I should have thought of that, but I actually didn’t know you can just copy all properties over with datum->syntax, haha. I guess I should have read the docs for that more carefully. This does seem a little bit like cheating because now the macro-generated

Re: [racket-users] Getting the "require" syntax arrows to work right

2015-10-24 Thread Robby Findler
I'm not sure syntax-original? is really that meaningful anymore. Another way to forge it is to use read-syntax with a string port that has whatever you want (during a macro expansion call). And check syntax even accepts an alternative property for those times when these two approaches aren't

Re: [racket-users] Getting the "require" syntax arrows to work right

2015-10-24 Thread Robby Findler
Maybe you need to copy over the properties too? This seems to work: #lang racket/base (require (for-syntax racket/base)) (define-syntax (import stx) (syntax-case stx () [(_ (a b)) #`(require #,(datum->syntax stx (string->symbol (format "~a/~a" (syntax-e

[racket-users] Getting the "require" syntax arrows to work right

2015-10-24 Thread Alexis King
I’ve been toying with the idea of making an R7RS implementation in Racket, and one of the things I’ve implemented is the R7RS `import` form. It’s very easy to implement in Racket, and it works fine as far as I can tell, but I can’t figure out how to get the special binding arrows to cooperate