[racket-users] Problem with getting first element of a list

2016-03-21 Thread xynet2k
I have trouble with getting/using first element of a list I pasted the code here: http://paste.ofcode.org/35MssbZ7DPWr3buYSyAKTG7 Line 15: (first ls) is where I'm having trouble with, will appreciate any help. Thanks. -- You received this message because you are subscribed to the Google

Re: [racket-users] Re: Observing/tracking developer activity in DrRacket

2016-03-21 Thread Robby Findler
There is a "log" facility that records the content of the definitions and interactions window periodically. You could ask students to use it and then submit it. Robby On Mon, Mar 21, 2016 at 12:41 PM, Jace Kyung-Min Kim wrote: > On Monday, March 21, 2016 at 9:02:31 AM

define/provide (Was: [racket-users] Can a macro have an affect above/outside its scope?)

2016-03-21 Thread Neil Van Dyke
Brian Adkins wrote on 03/21/2016 11:37 AM: As I mentioned in my original post, I wasn't suggesting we emulate the Elixir behavior - I was really just curious about macro limitations :) I have hijacked the thread. Pray I do not hijack it further. :) `define/provide` seems a bit long to me.

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
On Monday, March 21, 2016 at 11:19:18 AM UTC-4, Neil Van Dyke wrote: > I propose that it's time for `#lang racket/base` to have a `define/provide`. > > (Out of all the possible combinations of definition forms and other > things we might often want to do with the defined identifier(s) at the >

Re: [racket-users] Re: new #lang sicp

2016-03-21 Thread Matthew Eric Bassett
This is great Neil. I am running a London study group on SICP and we can help test this after the easter holiday. Many thanks to everyone who has worked on this. Matthew Eric Bassett | https://mebassett.info > On Mar 21, 2016, at 14:55, Brian Adkins wrote: > >> On

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Neil Van Dyke
I propose that it's time for `#lang racket/base` to have a `define/provide`. (Out of all the possible combinations of definition forms and other things we might often want to do with the defined identifier(s) at the same time, the pair of `define` and `provide` together is overwhelmingly the

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
Sure, or just switch the semantics so p means public. I'm no concerned with the difficulty of public vs. private so much as adding or updating the provide from from a define. On Monday, March 21, 2016 at 10:56:49 AM UTC-4, Sean Kanaley wrote: > What if you define define as define/provide and

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Sam Tobin-Hochstadt
Here's what I would do: - Add `(provide (all-defined-out))` at the top of the file (or in a #lang elixir) - Have `(define ...)` just be the regular racket define. - Have `(definep f e)` work like this: (define f* e) (define-syntax f (make-rename-transformer (syntax-property #'f*

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Sean Kanaley
What if you define define as define/provide and define definep as define? That doesn't answer the question about black magic though. On Mon, Mar 21, 2016 at 10:51 AM, Brian Adkins wrote: > I've been porting my friend's Elixir code to Racket with great success. > When I

[racket-users] Re: new #lang sicp

2016-03-21 Thread Brian Adkins
On Friday, March 18, 2016 at 8:03:29 AM UTC-4, Neil Van Dyke wrote: > Could anyone currently working through or teaching SICP please try out > the new `#lang sicp` support, in Jens Axel Sogaard's `sicp` package in > the new package system? > > http://docs.racket-lang.org/sicp-manual/ > > If

[racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
I've been porting my friend's Elixir code to Racket with great success. When I asked what the equivalent of (provide my-func) was in Elixir, they mentioned that you can define a private function with defp instead of def. For example: defmodule MyModule do def foo(a) do ... end defp

[racket-users] Observing/tracking developer activity in DrRacket

2016-03-21 Thread Klaus Ostermann
I'd like to evaluate how my students program when they do their homework exercises (in a way that is compatible with privacy concerns). Is the plugin structure of DrRacket suited to extending DrRacket with such a functionality (e.g. tracking the history of the editor)? Do any similar tools