[racket-users] how to create button to reset vector (tic tac toe game help)

2018-05-17 Thread Adik
im trying to create a (start new game) button to refresh the game (clean board).. attached is the code i have I have already created a reset button that closes the whole game window but i just want it to wipe the previous game data and start new game. Thankyou in advance. -- You received this

Re: [racket-users] ssax:make-parser

2018-05-17 Thread Neil Van Dyke
N. Raghavendra wrote on 05/17/2018 03:29 PM: I think 3 is the most attractive possibility, Agreed.  #1 and #2 are for gracefully handling backward compatibility, and for accommodating a decentralized volunteer model. One way that #2 is volunteer-friendly is that, I suggest, for example, som

Re: [racket-users] ssax:make-parser

2018-05-17 Thread N. Raghavendra
At 2018-05-17T13:40:47-04:00, Neil Van Dyke wrote: > One strategy for SXML-related support would be for the Racket > community to collectively do all 3 of these: > > 1. Treat the monolithic `sxml` package of Oleg's various SXML-related > tools remaining pretty frozen in its current state. This wil

Re: [racket-users] ssax:make-parser

2018-05-17 Thread N. Raghavendra
At 2018-05-17T12:45:50-04:00, John Clements wrote: > Honestly, reading that snippet … suggests to me that make-parser might > not actually be useful without all of the other internal ssax > functions, and that perhaps make-parser really shouldn’t be exported, > after all :). If you wish, pending

Re: [racket-users] ssax:make-parser

2018-05-17 Thread Neil Van Dyke
One strategy for SXML-related support would be for the Racket community to collectively do all 3 of these: 1. Treat the monolithic `sxml` package of Oleg's various SXML-related tools remaining pretty frozen in its current state. This will be the "raw, classic, everything" package.  It will be

Re: [racket-users] ssax:make-parser

2018-05-17 Thread 'John Clements' via Racket Users
Honestly, reading that snippet … suggests to me that make-parser might not actually be useful without all of the other internal ssax functions, and that perhaps make-parser really shouldn’t be exported, after all :). Is it possible to formulate productive uses of make-parser that don’t require a

[racket-users] Contracts and blame for struct subtypes

2018-05-17 Thread Philip McGrath
I want to write a contract on an exported struct type that insists that clients who derive subtypes must ensure that the fields of the parent type are initialized with appropriate values. The following program does the checking I want, but the blame isn't what I want or would have expected: it bla

Re: [racket-users] Unicode identifiers

2018-05-17 Thread N. Raghavendra
At 2018-05-17T11:11:26-04:00, Greg Hendershott wrote: > One gotcha, which I remember confusing myself with, early on: > > (define 'foo "foo") > '1 ;"foo" > '2 ;"foo" > > Huh? That's because 'foo is reader shorthand for (quote foo). So the > above is actually: > > (define (quote foo

Re: [racket-users] Unicode identifiers

2018-05-17 Thread Greg Hendershott
One of my favorite small things about Racket is that is permits almost anything to be an identifier -- allowing you to use whatever natural names you prefer. In addition to Unicode, identifiers can start with a number: (define 100-continue? "✓") In the rare case where an identifier wouldn't