[racket-users] Re: A language and REPL for SRFI 105 "curly infix"

2022-02-12 Thread kalime...@gmail.com
https://pkgs.racket-lang.org/package/sweet-exp It implements curly infix along with other syntax enhancements. Your example works with it (#lang sweet-exp racket) as is. пятница, 31 декабря 2021 г. в 15:42:36 UTC+5, damien...@gmail.com: > Hi, > > i adapted a #lang and REPL for SRFI 105: > >

[racket-users] syntax-case, require, file

2022-02-12 Thread kalime...@gmail.com
Why (define-syntax (require-file stx) (syntax-case stx () [(_ x) #'(require (file x))])) doesn't work (it compiles, but doesn't import identifiers)? (define-syntax (require-file* stx) (syntax-case stx () [(_ x) #`(require #,(datum->syntax #'x (list #'file #'x)))])) works

Re: [racket-users] How to require untrusted module?

2021-10-22 Thread kalime...@gmail.com
Thank you! Is it possible to safely load untrusted module with dynamic-require? пятница, 22 октября 2021 г. в 22:59:57 UTC+5, Robby Findler: > On Fri, Oct 22, 2021 at 12:43 PM Matthew Flatt wrote: > >> At Thu, 21 Oct 2021 07:37:12 -0700 (PDT), "kalime...@gmail.com" wrote

[racket-users] How to require untrusted module?

2021-10-21 Thread kalime...@gmail.com
I've read about protect-out and current-code-inspector, but I still cannot understand, how to require a module and forbid it to run protected modules. Something like (require untrusted-foo) (foo-proc) but to forbid foo-proc to use ffi/unsafe. -- You received this message because you are

[racket-users] Re: Help in understanding 'letrec' example

2021-05-09 Thread kalime...@gmail.com
We are finding a file (or directory) with name "tarzan" inside all directories inside given path upto given depth. Recursion is needed here, because tarzan-near-top-of-tree? calls tarzan-in-directory? and tarzan-in-directory? calls tarzan-near-top-of-tree? for each file in given directory.

[racket-users] DrRacket & current-compile

2021-05-03 Thread kalime...@gmail.com
Hello! Is it possilble to redefine current-compile inside DrRacket? I want to wrap compiler call for my #lang, but don't know how. I tried racketrc.rktl, but it works only in console Racket. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

[racket-users] DrRacket indentation in the interaction window

2021-05-01 Thread kalime...@gmail.com
Hello! Is it possible to change the way, how DrRacket auto-indents new lines in the interaction window? I can control indents in the definition window by setting drracket:indentation. Is there something like that for the interaction window? -- You received this message because you are