On 9/28/19, Jonathan Simpson wrote:
> It works when I change my mag-line syntax class to:
>
> (define-syntax-class mag-line
> (pattern (line expr ...)))
>
> So removing the literal specifier on line seems to work. I'm still not sure
> why the two modules behave differently though. It seemed
> Should I include a brief documentation in
> scribble-doc/scribblings/scribble/srcdoc.scrbl within the same PR as well?
Yes!
And if there are tests for scribble/srcdoc, it'd be good to add some
for `class-doc` before merging
--
You received this message because you are subscribed to the
These changes look great. Can you open a pull request for the
racket/scribble repo?
https://github.com/racket/scribble
Some comments below
> Also I implemented a simple defclass wrapper as a provide form named
> class-doc:
>
> class-doc syntax form
> (define-provide/doc-transformer
I see the same results on Racket 7.0 and 6.5, so I don't think
anything has changed.
Maybe the trouble is that (make-inspector) makes a subinspector of
(current-inspector), which has the same value for both the main module
& the submodules.
Switching to (make-sibling-inspector) causes (struct?
Inside
Welcome to Racket v7.4.0.1.
> (require pict)
> (pict-width (rectangle 100 100 #:border-width 5))
100
> (pict-height (rectangle 100 100 #:border-width 5))
100
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
The -> combinator doesn't support unspecified keywords. ->* won't work either.
Instead, you can try writing a new contract combinator (keyword-procedure/c ?)
Or, don't use define/contract and put the domain checks in the function body.
--
You received this message because you are subscribed to
A few of the GTP benchmarks [1] use immutable hashes. Here's a link
with the ones that look most interesting:
http://ccs.neu.edu/home/types/tmp/gtp-hash.tar.gz
And here's a small (untyped) program that uses code from the tr-pfds
library to make a trie:
On 8/20/19, Brian Adkins wrote:
> Consider the following two macros:
>
> (require (for-syntax syntax/parse))
>
> (define-syntax (phone-numbers stx)
> (syntax-parse stx
> [(_ ((~literal number) phone) ...)
> #'(list phone ...)]))
>
> (define x (phone-numbers
>(number "1212")
>> At the beginning of every inclided file (and there are more than fifty
>> of them) I have to place the lines
>>
>> #lang scribble/base
>> @(require "pfx.scrbl")
>>
>> where pfx.scrbl contains the definitions of my new @ commands.
You could replace those lines with a custom #lang:
> Now for the next problem. If I @include-section, an occurrence of
> redtext in the included section is recognised as an unbound identifier.
> Evidently I need to say something to get included sections to inherit
> bindings fro the main file.
`include-section` is much closer to Racket's
On 7/24/19, Mike G. wrote:
>> My proposal is to pick a currently underused character (I picked '/' 30
>> years ago but amost anything would do) and use it to replace the
>> tail-nesting '(', and remove its corresponding ')'.
>>
>> Suddenly visual parenthesis-matching becomes an order of magnitude
You should be able to keep the current Racket,
download a snapshot build,
and run the `/bin/drracket` inside the snapshot
https://www.cs.utah.edu/plt/snapshots/
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
More answers:
On 7/15/19, Hendrik Boom wrote:
> (1) How does scribble handle mathematical notation? Presumably there's a
> hack
> for when I'm generating TeX, but is there anything reasonable when
> generating
> HTML? Mathjax is somewhat tolerable, but mathML would be nice.
For TeX, I tell
> I'm particularly curious if the (robust-watch) procedure provided by the
> package in particular behaves consistently across operating systems. I do
> not have a Mac and was hoping that a Mac+Racket user would be willing to try
> this out and report his or her experience.
(robust-watch) worked
Here's a small package that gets the link right (attached).
If the example doesn't help, can you share your code?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
I don't know if I understood the "Aggregates are self-contained" section. The
SQL looks self-contained, as long as you read the whole query. And one has to
read the whole query in the Plisquin version too (but definitions come first).
In the last section, I'm not sure what a "scalar" or "plural
I tried to reproduce this problem, but wasn't able to.
Which version of Racket are you using? How did you run the program?
On 6/20/19, Amir Teymuri wrote:
> I have the following situation:
>
> mylibrary:
>
>-src
> - font.rkt
> - gui.rkt
>- scratch.rkt
>
>
> So the src/
On 6/15/19, Sorawee Porncharoenwase wrote:
> First of all, . won’t work in standard Racket because . has a special
> meaning (see
> https://docs.racket-lang.org/reference/reader.html#%28part._parse-pair%29).
The `read-cdot` parameter can change the standard meaning
On 6/14/19, Gregor Kopp wrote:
> Hi!
> I found here docs: https://docs.racket-lang.org/routy/
> I'd like to try this for fast prototyping, but can't find the package as my
>
> google-fu is sloppy I guess.
> Any help please, sirs and madams?
Another option: search for "routy" at
In the separate files, try:
@defmodule[simple-svg #:link-target? #f]
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
You want the paragraph just above the caveat about concurrent modification:
> A hash table can be used as a two-valued sequence (see Sequences). The keys
> and values of the hash table serve as elements of the sequence (i.e., each
> element is a key and its associated value). If a mapping is
What happens if you provide the data structure from Typed Racket and
require it in an untyped module?
On 5/17/19, bruno cuconato wrote:
> hi,
>
> I'm trying to use a data structure defined in a typed racket module in my
> untyped code.
>
> I'm want it to be accessible from a generic interface,
It's definitely a TeX issue.
Leif Andersen and I were able to reproduce the error (thanks Leif!).
Then we ran `scribble --latex test.scrbl` to make a .tex file and
`pdflatex test.tex` for a nicer error message.
The message gives a hint that the texlive `scheme-basic` is not enough:
```
cannot
What version of Racket are you using?
The file makes a pdf for me on v7.0
(and the current master)
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I normally:
- search the docs,
- find the identifier in the left column,
- and read the libraries from the right column
https://docs.racket-lang.org/search/index.html?q=contract-out
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To
One quick thought: I wasn't sure what to expect after reading the current title.
How about changing it to say more about the specific exploit?
"A terrible hack to move state across Racket phases"
"How to smuggle state across phase boundaries"
At least, it would have helped me if "separate
On 4/20/19, Hendrik Boom wrote:
> On Thu, Apr 18, 2019 at 09:08:07AM -0700, Luis Sanjuán wrote:
>> Then I thought about another non-Racket languages that no one
>> mention, if I recall well, for which such examples would be more than
>> helpful, *SL languages ;)
>
> What are *SL languages?
Those
> Also, wait, all it took to define s-exp meta language ... was one line?!
> You racketeers need to get serious here, no wonder you can't find jobs. If
> you don't create work for yourself noone would. Go build 80% frameworks or
> smth
You might like gnal-lang:
On 4/8/19, Ben Greenman wrote:
> I think you want to require slideshow/base instead
>
Nevermind, that's not right --- at least not on Mac OS where its not
possible to instantiate racket/gui in a non-main place.
The problem is that requiring slideshow ends up starting the GUI and
(I
I think you want to require slideshow/base instead
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options,
Racket's macros are hygienic. They'll gensym for you.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more
On 3/23/19, David Storrs wrote:
> Alex makes good points, but I'm curious about the original question: Is
> there a straightforward way to tell which function it was whose contract
> was violated, aside from parsing the message? Or, more generally, where a
> specific exception came from?
For
On 3/19/19, Justin Zamora wrote:
> On Tue, Mar 19, 2019 at 10:35 PM Ben Greenman
> wrote:
>> I'm thinking a color-map% object would define a possibly-infinite
>> sequence of colors that look nice in some way. The colors might be
>> useful anywhere where someone wan
> Could you (or Ben or Matt) elaborate on how do you see this work for non
> plot programs?
>
> For plots, the reason that color maps are useful is because the user will
> usually not care what the colors are, as long as they stand out visually
> and look pleasing next to each o
+1
Maybe the colormaps should go in racket/draw.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options,
You can also use sequences:
#lang racket/base
(require racket/sequence)
(sequence-ref (in-producer (let ([i 0]) (lambda () (begin0 i (set! i
(+ i 1))
2000)
(sequence-ref (in-naturals)
2000)
--
You received this message because you are subscribed to the
On 3/11/19, 'John Clements' via Racket Users
wrote:
> I would suggest maybe just using racket here:
>
> #lang racket
>
> (require setup/parallel-build)
>
> (define racket-files
> (for/list ([file (in-directory "/tmp")]
> #:when (regexp-match #px"\\.rkt$" file))
> file))
>
>
On 3/8/19, David Storrs wrote:
> On Fri, Mar 8, 2019 at 3:13 PM Greg Hendershott
> wrote:
>
>> I have a dumb question. Why can't doc pages have links whose label is
>> something like "Want to improve the docs?", and the URL goes directly
>> to the appropriate .scrbl file on GitHub?
>>
>
> I
prop:procedure is indeed pre-defined:
https://docs.racket-lang.org/reference/procedures.html#(def._((lib._racket%2Fprivate%2Fbase..rkt)._prop~3aprocedure))
Here's one way to look at things:
- struct is a tool for making new datatypes
- #:property is a hook for adding a new "skill" to the new
On 2/28/19, Brian Craft wrote:
> So, when working with large data that is internal to an app, where schema
> is guaranteed by serialization, there's no way to load that without another
> O(N) pass to satisfy the type checker?
Right. This is how the type checker helps find & prevent bugs.
> It bothers me that the change applies only to HTML output and not PDF
> output via LaTeX, but I don't see a way to get that effect via LaTeX
> without substantial changes.
Is it possible to wrap each line in an \mbox, or to have SVerbatim
make the \textwidth extremely wide?
--
You received
Here's a suggestion for the docs:
https://github.com/racket/racket/pull/2505
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
It's possible to have both, but not always easy.
Best-case scenario: make CSS classes named `TwoColumn` and
`multicolsbreak` that work the same as the LaTeX macros.
Otherwise, the Scribble file will need to produce
differently-structured output for HTML and LaTeX.
Sometimes it helps to run
No need to apologize.
The point of the example files was to show how to connect a Scribble
function to a LaTeX macro. I don't recommend copy-pasting the files.
Instead:
0. Make a small Scribble document to render a pdf without the
side-by-side text. (Scribble's "Getting Started" guide should
I'm not sure what to simplify.
Can you send what you tried, and explain what happened and what you expected?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
In case you have trouble navigating the docs, here's a related example.
First, a Scribble function that generates output with a Scribble style
named "TwoColumn":
https://github.com/nuprl/tag-sound/blob/master/gf-icfp-2018/main.rkt#L326
Second, a LaTeX macro named "TwoColumn" that formats the
> I think beautiful racket, and fear-of-macros are essential, but I feel I
> lack resources for
>
> - Creating other styles of syntax: e.g. c/java, python, ruby,
> smalltalk, forth, etc.
>
> - A video with a good quality image
>
> - IDE(DrRacket) support for new language
You discovered a backwards incompatible change to Redex. Changing M
and N to A and B is a good fix. (The errata really should talk about
this.)
Here are two related threads:
https://groups.google.com/d/msg/racket-users/be54SG881GU/bndA4eiGAQAJ
Maybe use `port-count-lines!` and `port-next-location` ?
http://docs.racket-lang.org/reference/linecol.html
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Another option
- make a branch for the Racket 5 code
- add version exceptions [1] to pkgs.racket-lang.org
- split the repo on the master branch
The downside to this plan is that someone needs to add a version
exception for every 5.x version of Racket that `graph` wants to
support.
[1]
I think this requires discussion & modification.
E.g.: https://github.com/racket/plot/issues/49
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
There's a Chinese translation in progress:
https://github.com/racket/racket/issues/1902
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Yes, @index
I learned about it to put "powerset" to the docs, and always go back
to that example when something like this comes up:
https://github.com/racket/racket/blob/master/pkgs/racket-doc/scribblings/reference/pairs.scrbl#L1333
--
You received this message because you are subscribed to the
How about a pull request that redirects searches for "set-subset?" to
the `subset?` function?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Your program is half an answer :) Here's a second half to compare:
#lang racket/base
(module typed1 typed/racket/base
(provide (struct-out container)
container-append)
(define-type SymbolTree
(U Null Symbol (Pairof SymbolTree SymbolTree)))
(struct container ([tree :
+1, especially for the at-exp post
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit
ul for ordinary Racket programming, not just for Scribble. So *that's*
how you do string interpolation! And when looking through the
documentation, I had skipped right over ~a function, which looks like
another bread-and-butter function.
https://www.greghendershott.com/2015/08/at-expressions.html
The Racket Cheat Sheet might help:
http://docs.racket-lang.org/racket-cheat/index.html
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
t I
realize that this may be asking more than is feasible. However, I am willing
to help write one in collaboration with someone who already knows their way
around Racket. The best time to write such a thing is while beginning—when
the
stuff that goes without saying because everyone knows it is
n six
months of beating your head against a new language completely on your own.
(I'd prefer not to go the latter route.)
Ben
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, se
:
very simple stuff that's crucial to know to be productive and usually takes
only a couple minutes to explain in person but is omitted in documentation.
I take it, then, that no collection of these little things exists yet?
Ben
--
You received this message because you are subscribed to the Google G
eoretical. I just want
to
find out some basics about how you actually get things done in Racket,
explained briefly for someone with prior experience with Clojure.
Ben
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe fr
Typed Racket first runs the macro expander, and then type checks the
expanded program.
If your implementation can type check an expanded program too, then
you can probably get started by copy/pasting typed racket's
#%module-begin and inserting a new pass over the program just after
the optimizer.
I don't think so, but check `typed-racket/types/type-table`:
https://github.com/racket/typed-racket/blob/master/typed-racket-lib/typed-racket/types/type-table.rkt#L20
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this
Hope this helps with syntax-parse:
http://docs.racket-lang.org/syntax-parse-example/index.html
If not, please submit an issue!
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it,
> I want to package my library for https://pkgs.racket-lang.org but I can't
> figure out how to do the info.rkt file.
>
> I would like my repo to be like this:
>
> * repo/peg/codehere.rkt like main.rkt peg.rkt etc.
> * repo/tests/ my tests
> * repo/scribblings/peg.scrbl the documentation
>
> is
I use this:
http://docs.racket-lang.org/gtp-util/index.html#%28def._%28%28lib._gtp-util%2Fmain..rkt%29._rnd%29%29
I didn't know about SRFI 54 --- looking forward to reading other responses.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To
file/gif is from the draw-lib package
https://github.com/racket/draw/blob/master/draw-lib/file/gif.rkt
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Hi Paulo,
I hope you try using Typed Racket. If the performance turns out to be
a problem, we can try to help.
Here are some other experiences that people have shared on the list:
https://groups.google.com/d/msg/racket-users/rfM6koVbOS8/klVzjKJ9BgAJ
I'm having a similar problem with the documentation for this package:
https://pkgd.racket-lang.org/pkgn/package/gtp-measure
On Fri, Feb 9, 2018 at 12:11 PM, wrote:
> Hello,
>
> I uploaded my package 3 days ago https://pkgs.racket-lang.org/package/peg
> but the documentation
Here are 2 how-tos on creating a package:
http://blog.racket-lang.org/2017/10/tutorial-creating-a-package.html
https://beautifulracket.com/jsonic-3/the-info.rkt-file.html
The error message might be because your repo doesn't have an `info.rkt` file.
gest in light of your comments), it may also be a symptom of most widely
used programming languages having a linguistic heritage aligned with
English.
Caveat that my remark was regarding the literature of programming rather
than mathematics.
Cheers. Ben
On Tue, Feb 6, 2018 at 7:07 AM, Nor
Looks like its for the same reason that (number->string -0) yields "0".
+nan.0 is special, but -nan.0 is the same as (- +nan.0)
http://docs.racket-lang.org/reference/numbers.html
On Mon, Feb 5, 2018 at 6:41 PM, David Storrs wrote:
> I noticed that (number->string
The issue was with environment variables. The user account had some
PLT variable set. Running as root un-set the variables that were
causing the trouble.
On Mon, Jan 22, 2018 at 11:51 AM, Robert X wrote:
> I install on MacOS using the .dmg download. I put it in /Users//Racket
> What's the best way around this?
Install Racket v6.11. Then `raco pkg install plai-typed` should just work.
> Why isn't raco finding the appropriate versions?
When raco installed plai-typed, it (1) saw that plai-typed was not
installed and (2) searched on pkgs.racket-lang.org and (3)
You can `(require racket/match)`. Make sure to force the match expression!
#lang lazy
(require racket/match)
(match (! (string->symbol "a"))
['a 'a]
['b 'b])
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group
> This has tanked my performance to the point where the tests for
> non-scalar types (vectors and hashes) time out on the package
> server, and thus fail.
> https://gitlab.com/HiPhish/MsgPack.rkt/commit/0b6cdc7115389db97a8de2a5175c1feb4c939f8f
The performance is probably because HashTable and
Oh right --- instead of making a new exception type, it's possible to
use `require/typed` to give `raise` a different type signature:
```
#lang typed/racket/base
(require/typed racket/base
(raise (All (A) (-> Any A
(with-handlers ((vector? values))
(raise (vector 1 2 3)))
;; '#(1 2 3)
Let me make sure I understand:
1. A converter is like a two-way function, lets say (A . <-> . B)
2. If someone composes two incompatible converters, like (integer? .
<-> . symbol?) and (string? . <-> . boolean?) then they should get an
error that points to the place where they tried to do the
That name sounds good to me.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit
The error is because type signature of `raise` doesn't allow
"non-flat" values like functions and mutable vectors.
It might not be safe to allow `(raise (vector 1 2 3))` in Typed Racket
... I'm not sure.
For now I think you should make a new exception type. Example:
```
#lang typed/racket/base
> * Would have never been able to deduce this from the info you referenced...
Good point. Here's a pull request for changing the docs:
https://github.com/racket/scribble/pull/154
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe
Try changing the include-section to import the `doc` submodule:
@include-section[(submod "sub-scribble.rkt" doc)
I got this idea from the 2nd paragraph of the "scribble/lp2 language" docs:
http://docs.racket-lang.org/scribble/lp.html#%28mod-path._scribble%2Flp2%29
On Wed, Nov 29, 2017 at 7:15
I don't think this is currently possible.
To implement this, I think the `for-2d-sample` loop here needs to change:
https://github.com/racket/plot/blob/master/plot-lib/plot/private/plot3d/surface.rkt#L28
(I guess there should be 2 loops, one to draw the surface and one to
draw the lines)
On
The other day, I wanted to write a contract for a function that takes
any kind of vector and does something depending on whether the vector
is mutable. The contract was basically the one below:
```
#lang racket
(define/contract (f v)
(parametric->/c [A]
(-> (or/c (vectorof A #:immutable
My guess is that "(define" does something special to figure out where to
insert newlines in the rendered document.
On Thu, Nov 23, 2017 at 9:13 AM, Jos Koot wrote:
> My code:
>
> #lang scribble/manual
>
> @(require
> scribble/core
> scribble/eval
> racket
>
> Others: Does define/match do anything that would make Typed Racket see it
> differently from define + match*? It seems like define/match expands to
> define + match*/derived anyway. The only thing that's different is which
> define it's expanding to. So is expanding to Racket's define instead of
I like the output `raco make -v ` gives on the command-line.
How about piping that into the interactions window?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
I just changed the map settings so anyone can edit it.
If you'd like to add your city to the map:
1. Look for "racketeers.csv" in the menu
2. Click the "vertical dots" to the right of "racketeers.csv". (If you
hover the mouse over these dots, it should say "Layer Options")
3. Click "Open Data
Here's a map to some cities where some Racket users are located:
https://drive.google.com/open?id=1i3zN11e_6te5ytduAiv1cidrIi4=sharing
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails
> Greg, if you're reading this...any chance you might expand FoM?
In the meantime, the "Syntax Parse Examples" package is always
accepting contributions:
http://docs.racket-lang.org/syntax-parse-example/index.html#%28part._.The_.Examples%29
--
You received this message because you are
I have 1 mug (unused) that still needs a home.
On Thu, Oct 5, 2017 at 3:18 PM, 'John Clements' via users-redirect <
us...@plt-scheme.org> wrote:
> Forwarded without comment… :)
>
> Begin forwarded message:
>
> *From: *Jasmine Harihar Patel
> *Subject: **Racket Con*
>
You can download PDFs for most of the documentation here:
http://download.racket-lang.org/all-versions.html
And if your device has Racket installed, you can run `raco docs` to view a
local copy of the HTML.
--
You received this message because you are subscribed to the Google Groups
"Racket
Try adding `#:eval foo-eval` to `interaction`. (I'm guessing that would
work.)
I'm more sure this will work:
#lang scribble/manual
@(require scribble/example "../main.rkt")
...
@(define foo-eval (make-base-eval '(require "../main.rkt")))
@examples[#:eval foo-eval #:label #f
(magic)
Yes, you can use scribble/html to define functions from lists to documents.
For example, this scribble file calls a function to build an ` ... `
page:
https://github.com/nuprl/gtp/blob/gh-pages/about.rkt
and here's the function:
https://github.com/nuprl/gtp/blob/gh-pages/templates.rkt#L124
--
You can re-use helper functions by running the different example blocks
with the same evaluator (example below).
I don't know how to hyperlink one interaction to another.
- - -
#lang scribble/manual
@require[scribble/example]
@(define my-eval (make-base-eval))
Beginning.
@examples[#:eval
I think it'll work if you delete the underscores, e.g. change "e_1" to "e1".
On Wed, Sep 6, 2017 at 2:22 PM, wrote:
> (For some reason the mail I sent to usersracket-lang.org last week
> never made it to the Google Group, so I'm posting directly...)
>
> Hello,
>
> I'm a
One idea:
- write your program just like that, `1 + 2` with no #lang line,
- run your program with a raco command that runs the program once for each
language
Something like `raco mystery-lang -L lang1 -L lang2 -L lang3 file.txt`
In case you need an example raco-command:
Type inference is failing you again.
If you instantiate `foo/s`, you get the type you expect:
#lang typed/racket
(struct (a) Foo ([val : (-> a a)]))
(: foo/s (All (a b)
(-> (-> a b)
(-> (Foo a)
(Foo b)
(Foo b)
mflatt answered some "why"s on the racket-dev list:
https://groups.google.com/d/msg/racket-dev/2BV3ElyfF8Y/4RSd3XbECAAJ
On Thu, Jul 20, 2017 at 12:34 AM, Lehi Toskin wrote:
> I've read through a few README's in the racket7 repo and I can't find
> anything specifically
101 - 200 of 292 matches
Mail list logo