[racket-dev] lib changes between versions

From: Dan Liebgold (dan.liebgold at gmail.com)
Date: Thu Jan 8 14:43:59 EST 2015

Ah, these look like good approaches. First, I think I'll have to shore up
my usage of "raco setup" now to be sure I'm generating zos correctly for
the two different versions.

On Wed, Jan 7, 2015 at 10:19 PM, Tobias Hammer <tobias.hammer at dlr.de> wrote:

> I usually use this macro in a wrapper that require/provides the libs and
> provides compatibility wrappers when needed
>
> ;; compile time version switch
> (define-syntax (version>=? stx)
>   (syntax-case stx ()
>     [(_ min-version body body-else)
>      (if (string>=? (version) (syntax-e #'min-version))
>          #'body
>          #'body-else)]))
>
>
>
>
> On Thu, 08 Jan 2015 02:56:16 +0100, Dan Liebgold <dan.liebgold at gmail.com>
> wrote:
>
>  Actually this issue is still perplexing me. In 5.2.1 I have my own json
>> lib
>> which provides jsexpr->string. In 6.1 it's part of the distribution's
>> collects directory.
>>
>> Is there a command line for racket that'll cause it to find mine under
>> 5.2.1 and the standard lib in 6.1 (skipping mine)?
>>
>> Dan
>>
>> On Wed, Jan 7, 2015 at 4:51 PM, Dan Liebgold <dan.liebgold at gmail.com>
>> wrote:
>>
>>  Ugh. Never mind... the old json lib is mine. Carry on :)
>>>
>>> On Wed, Jan 7, 2015 at 4:45 PM, Dan Liebgold <dan.liebgold at gmail.com>
>>> wrote:
>>>
>>>
>>>> I'm maintaining the same racket code between Racket version 5.2.1 and
>>>> 6.1. One thing that changed between those version was the json to string
>>>> (and vice versa) lib functions.
>>>>
>>>> Is there a straightforward way to define those functions so they'll work
>>>> with both lib versions?
>>>>
>>>> Thanks,
>>>> --
>>>> Dan Liebgold    [dan.liebgold at gmail.com]
>>>>
>>>>
>>>
>>>
>>> --
>>> Dan Liebgold    [dan.liebgold at gmail.com]
>>>
>>>
>>
>>  _________________________
>  Racket Developers list:
>  http://lists.racket-lang.org/dev
>



-- 
Dan Liebgold    [dan.liebgold at gmail.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20150108/549c55ed/attachment.html>

Posted on the dev mailing list.