alexknauth / afl Goto Github PK
View Code? Open in Web Editor NEWa racket lang-extension for rackjure-like anonymous function literals
License: MIT License
a racket lang-extension for rackjure-like anonymous function literals
License: MIT License
Hello!
I'm using afl
with typed/racket
and my type-expander
library.
The type-expander
library works by overriding define
, lambda
and so on. Due to afl
's hygiene, #λ(…)
expands to a use or lambda
from racket/base
, not the intended lambda
from the type-expander
library. Fortunately, since there are no argument or return types to expand within #λ(…)
, the difference does not matter, but I suppose that in other cases it could matter.
Would it make sense to also have an unhygienic version of afl directly within this package?
I needed a unhygienic version, to circumvent an incompatibility between afl
and a modified version of scribble/lp2
that I use, the incompatibility is most likely on my side, but on the short term dropping hygiene seemed to do the trick, and I'll get back to my issue later. I have therefore already created the aful
package, which provides #lang aful
(exactly the same as afl
) and #lang aful/unhygienic
(unhygienic version).
If you think it's best to merge these changes in here, then I can open a PR, otherwise I can leave aful
as a separate package. You can see the changes here master...jsmaniac:unhygienic if you want (this diff also includes some changes to render correctly #λ
when it appears in scribble documents, using a patched version of scribble).
Regards,
Georges Dupéron
Hello,
I recently wrote a small package which uses #lang afl
, unfortunately it does not build on pkg-build.racket-lang.org
, because afl fails to build there:
http://pkg-build.racket-lang.org/server/built/fail/afl.txt
…
raco setup: making: <pkgs>/afl/afl/tests
raco setup: in <pkgs>/afl/afl/tests
/home/racket/build-pkgs/user/.racket/6.6/pkgs/afl/afl/tests/test-afl-racket.rkt:1:0: bad language path following at-exp
compilation context...:
/home/racket/build-pkgs/user/.racket/6.6/pkgs/afl/afl/tests/test-afl-racket.rkt
context...:
/home/racket/build-pkgs/racket/collects/syntax/readerr.rkt:15:2: -raise-read-error
/home/racket/build-pkgs/racket/collects/syntax/module-reader.rkt:295:4: -read-syntax
/home/racket/build-pkgs/user/.racket/6.6/pkgs/hygienic-reader-extension/hygienic-reader-extension/extend-reader.rkt:11:2
/home/racket/build-pkgs/user/.racket/6.6/pkgs/afl/afl/lang/reader.rkt:12:5
/home/racket/build-pkgs/racket/collects/syntax/modcode.rkt:62:2: reader
/home/racket/build-pkgs/racket/collects/compiler/cm.rkt:634:2: do-check
/home/racket/build-pkgs/racket/collects/compiler/cm.rkt:722:4
/home/racket/build-pkgs/racket/collects/compiler/compiler.rkt:169:4: worker
/home/racket/build-pkgs/racket/collects/compiler/compiler.rkt:92:2: compile-directory-visitor23
/home/racket/build-pkgs/racket/collects/setup/setup-core.rkt:1038:2: compile-cc
/home/racket/build-pkgs/racket/collects/setup/setup-core.rkt:1114:10: for-loop
/home/racket/build-pkgs/racket/collects/setup/setup-core.rkt:70:0: setup-core
/home/racket/build-pkgs/racket/collects/setup/setup.rkt:65:3
/home/racket/build-pkgs/racket/collects/pkg/main.rkt:17:0: setup
(submod /home/racket/build-pkgs/racket/collects/pkg/main.rkt main): [running body]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.