[racket] Status of Moby?

2013-01-12 Thread Scott Klarenbach
Hi, I was wondering about current status of Moby. Is it still active? How stable? What is and is not yet supported? Thanks. -- Talk to you soon, Scott Klarenbach PointyHat Software Corp. www.pointyhat.ca p 604-568-4280 e sc...@pointyhat.ca #308 - 55 Water St. Vancouver, BC V6B1A1

[racket] Typed Racket and classes and objects

2013-01-12 Thread Harry Spier
I've started going through "A Little Java a Few Patterns" to learn some basic OOP techniques and patterns but I've been using Racket instead of Java (I don't know Java so I'd prefer to stick with Racket). Is it possible to use Typed Racket instead of Racket with classes and objects, so I can put

Re: [racket] Declaring methods and fields with internal and external names

2013-01-12 Thread Matthias Felleisen
How is this: #lang racket (define graph% (class object% (field ((n nodes) '())) (public (get get-fields)) (define/public (all) (get)) (define (get) n) (super-new))) (define graph (new graph%)) (define fields (get-field nodes graph)) (equal? (send graph get-fields) fiel

Re: [racket] novice question about expressions

2013-01-12 Thread Jos Koot
Assuming Jamel does a self study. I think Jamel ment (/ (+ (* n n) 300) (* 13 n)). Grant, with your definition: (define (f n) ( + ( * n 2 ) 300)) (f 5) -> 310 As Jamel is expecting 325, I assume n*2 is ment as an exponentiation. There are many ways to write this down, for example: (define (f n

Re: [racket] novice question about expressions

2013-01-12 Thread Stephen Bloch
On Jan 11, 2013, at 9:08 PM, Jamel Hamani wrote: > how do I formulate this expression in racket? > > (n*2+ 300) / (13n) > > I got the first part done > > (define (f n) > ( + ( * n n ) 300)) That already looks odd. When you write "n*2", do you mean n times 2, or n raised to the power of 2

[racket] Declaring methods and fields with internal and external names

2013-01-12 Thread Harry Spier
The Racket reference says: 5.2.3.3 Internal and External Names Each method declared with public, override, augment, pubment, overment, augride, public-final, override-final, augment-final, inherit, inherit/super, inherit/inner, rename-super, and rename-inner can have separate internal and external

Re: [racket] novice question about expressions

2013-01-12 Thread Grant Rettke
(/ (+ (* n 2) 300) (* 13 n)) On Fri, Jan 11, 2013 at 8:08 PM, Jamel Hamani wrote: > (n*2+ 300) / (13n) -- Grant Rettke | ACM, AMA, COG, IEEE gret...@acm.org | http://www.wisdomandwonder.com/ Wisdom begins in wonder. ((λ (x) (x x)) (λ (x) (x x))) Racket Users list:

[racket] novice question about expressions

2013-01-12 Thread Jamel Hamani
how do I formulate this expression in racket? (n*2+ 300) / (13n) I got the first part done (define (f n) ( + ( * n n ) 300)) So lets say I pick 5. (f 5) would give me 325. But how would I do the second part- dividing it by (13n)? Racket Users list: http://lists.racke

Re: [racket] compilation error in parameter.plt

2013-01-12 Thread Asumu Takikawa
On 2013-01-09 14:49:34 +0200, Răzvan Rotaru wrote: >[2]http://planet.racket-lang.org/trac/ticket/385 >Is there a way to push the fix back into the repository (other than >emailing the owner)? I think the only way to upload new versions of a package onto PLaneT is to be the package owne