00:10 (quit) jao: Ping timeout: 255 seconds 00:15 (join) karswell` 00:15 (quit) karswell: Remote host closed the connection 00:15 (quit) adu: Quit: adu 00:19 (quit) Kaylin1: Ping timeout: 246 seconds 00:21 (join) _tca 00:23 (join) mizu_no_oto 00:25 (quit) dnolen: Quit: ERC Version 5.3 (IRC client for Emacs) 00:27 (quit) vu3rdd: Remote host closed the connection 00:28 (quit) mizu_no_oto: Client Quit 00:28 _tca: how do i get & 00:29 _tca: rest arguments where i get indentation like &body in CL 00:31 jonrafkind: like (define (foo x . rest) ...) ? 00:34 _tca: jonrafkind: it's not about the rest parameters, it's about hinting to the drracket/emacs to indent it a special waym otherwise rest gets aligned with x 00:34 mithos28: _tca: There are only 3 kinds of indentation in drracket 00:35 mithos28: and they are determined by the first form in an sexpression 00:36 _tca: do you understand what i mean by &body mithos28? 00:36 _tca: for example, define has the type of indentation i'm talking about 00:36 _tca: is that not accessible to user definitions? 00:37 mithos28: it is in preferences 00:37 mithos28: and its not based on code/definition, its just textual based on symbol 00:38 (join) Kaylin 00:38 (quit) francisl: Quit: francisl 00:38 _tca: thanks 01:00 (quit) Kaylin: Ping timeout: 245 seconds 01:10 (join) Kaylin 01:30 (quit) mceier: Quit: leaving 01:31 jonrafkind: its kind of strange that (define (x . a #:z z) ...) fails with a read error 01:31 jonrafkind: the trivial solution is just to move #:z z to before the . a of course 01:32 jonrafkind: somehow I expected the first version to work though 01:32 mithos28: wow, me too 01:32 jonrafkind: the interesting thing is im not sure what to blame 01:33 jonrafkind: because (read "(x . z)") is just '(x . z) 01:33 jonrafkind: so the reader doesnt transform the . into something else 01:33 jonrafkind: it must be define that somehow checks if there is a . there and does something magic 01:33 mithos28: rudybot: eval '(a . b c) 01:33 rudybot: mithos28: your sandbox is ready 01:33 rudybot: mithos28: error: #:1:4: read: illegal use of `.' 01:33 jonrafkind: well yea thats the error 01:34 jonrafkind: i guess the reader is unhappy when a . b is followed by more tokens 01:35 mithos28: yeah, actually what would you expect '(a . b c) be read as? 01:36 jonrafkind: ok i guess define checks if the tail of the argument list is an improper list and if so makes it the rest argument 01:36 jonrafkind: somehow that seems like a hack 01:36 (quit) newblue: Quit: leaving 01:37 jonrafkind: rest arguments should use keywords like (define (f x #:rest a) ...) 01:37 mithos28: then how do you define something with the keyword rest? 01:37 jonrafkind: you dont, its off limits 01:38 jonrafkind: then you could even apply functions with a rest argument without using apply 01:38 jonrafkind: (f 1 #:rest (list 2 3 4)) 01:38 jonrafkind: (apply f 1 (list 2 3 4)) 01:38 jonrafkind: both would be the same 01:39 jonrafkind: or just (f 1 2 3 4) I guess too 01:48 (join) raphie 01:49 raphie: I have a list of lists-of-booleans, and I'd like to iterate through and produce a list containing the coordinates of each #t value in that two-dimensional list 01:50 mithos28: raphie: can you make a list of lists of the coordinates? 01:52 raphie: mithos28: I could flatten it if I had that. but map doesn't give an index, right? 01:52 neilv: raphie: you will want to use your own recursive procedure, not "map" 01:53 raphie: okay! 02:05 (quit) raphie: Read error: Connection reset by peer 02:08 (join) vu3rdd 02:08 (quit) vu3rdd: Changing host 02:08 (join) vu3rdd 02:20 (join) hkBst 02:27 (join) hkBst_ 02:27 (quit) hkBst: Read error: Connection reset by peer 02:31 (join) mceier 02:45 (join) djcoin 02:45 (quit) hkBst_: Ping timeout: 248 seconds 02:56 (join) hkBst_ 02:56 (quit) hkBst_: Changing host 02:56 (join) hkBst_ 03:00 (quit) hkBst_: Ping timeout: 245 seconds 03:04 (join) hkBst_ 03:04 (quit) hkBst_: Changing host 03:04 (join) hkBst_ 03:07 (quit) jonrafkind: Ping timeout: 245 seconds 03:08 (quit) ASau: Ping timeout: 245 seconds 03:11 (join) tilde` 03:17 (quit) neilv: Quit: Leaving 03:19 (quit) hkBst_: Remote host closed the connection 03:19 (join) hkBst_ 03:19 (quit) hkBst_: Changing host 03:19 (join) hkBst_ 03:24 (quit) hkBst_: Ping timeout: 276 seconds 03:28 (quit) epsil: Remote host closed the connection 03:28 lewis1711: that guys question reminds me I should write an each-with-index procedure 03:32 (join) rmathews_ 03:33 (quit) rmathews: Ping timeout: 276 seconds 03:33 (nick) rmathews_ -> rmathews 03:37 (join) hkBst__ 03:42 (quit) hkBst__: Read error: Connection reset by peer 03:43 (quit) lewis1711: Quit: Leaving 03:44 (join) hkBst__ 03:49 (join) noelw 03:51 (join) bitonic 03:54 (join) soegaard 03:55 (join) strashilol 03:59 (quit) gridaphobe: Ping timeout: 244 seconds 04:04 (quit) hkBst__: Read error: Connection reset by peer 04:04 (join) hkBst__ 04:06 (quit) strashilol: Ping timeout: 245 seconds 04:22 (quit) hkBst__: Ping timeout: 248 seconds 04:23 djcoin: Just curious, what are the possible evolutions of Racket (future features) ? And is there some plan to build language on top of Racket, for example, a "pure" (à la haskell) or providing only purely functional datastructure (à la clojure) ? 04:31 (join) hkBst__ 04:54 (quit) sizz_: Quit: No Ping reply in 180 seconds. 04:55 (join) sizz 05:00 (quit) bitonic: Ping timeout: 276 seconds 05:08 (join) tobi 05:19 (join) mye_ 05:21 (join) bitonic 05:26 (quit) mye_: Ping timeout: 248 seconds 05:31 (join) mye 05:35 (join) hkBst 05:36 (quit) hkBst__: Read error: Connection reset by peer 05:41 (quit) hkBst: Read error: Connection reset by peer 05:41 (join) hkBst 05:48 (quit) sysop_fb: Read error: Operation timed out 05:57 (quit) tilde`: Ping timeout: 256 seconds 05:59 (quit) soegaard: Quit: soegaard 06:03 (join) sysop_fb 06:23 (nick) merijn_ -> merijn 06:25 (quit) Kaylin: Quit: Leaving. 06:30 (quit) rbarraud__: Ping timeout: 244 seconds 07:05 (join) tilde` 07:08 (join) jeapostrophe 07:08 (quit) jeapostrophe: Changing host 07:08 (join) jeapostrophe 07:25 (join) rbarraud__ 07:25 (join) rmathews 07:54 (quit) rbarraud__: Ping timeout: 240 seconds 08:11 (quit) vu3rdd: Ping timeout: 246 seconds 08:32 (join) francisl 08:34 (join) soegaard 08:38 (quit) francisl: Quit: francisl 08:51 (join) mizu_no_oto 09:08 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 09:14 (join) newblue 09:15 (quit) soegaard: Quit: soegaard 09:19 (quit) Shvillr: Read error: Connection reset by peer 09:20 (join) Shvillr 09:23 (join) mizu_no_oto 09:23 (join) RacketCommitBot 09:23 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/mmg2xw 09:23 RacketCommitBot: racket/master 6c58cde Matthew Flatt: repair for snip% change... 09:23 (part) RacketCommitBot 09:24 (join) parcha 09:25 (join) soegaard 09:26 (quit) bitonic: Read error: Operation timed out 09:26 (join) RacketCommitBot 09:26 RacketCommitBot: [racket] plt pushed 5 new commits to master: http://git.io/Ke3Kxg 09:26 RacketCommitBot: racket/master 7f6d85f Jay McCarthy: Use raco test by default 09:26 RacketCommitBot: racket/master 0f6a519 Jay McCarthy: Add login link 09:26 RacketCommitBot: racket/master 78a69de Jay McCarthy: Undo this for now 09:26 (part) RacketCommitBot 09:30 (quit) Shviller: Ping timeout: 256 seconds 09:30 (join) Shviller 09:33 (quit) hkBst: Read error: Connection reset by peer 09:33 (join) hkBst 09:35 (quit) asumu: Ping timeout: 264 seconds 09:37 (join) jao 09:37 (quit) jao: Changing host 09:37 (join) jao 09:40 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 09:49 (join) asumu 09:49 (join) asumu_ 10:03 (join) bitonic 10:05 (quit) asumu: Ping timeout: 245 seconds 10:05 (join) francisl 10:07 (quit) asumu_: Ping timeout: 264 seconds 10:12 (join) asumu 10:13 (join) asumu_ 10:16 (quit) asumu: Client Quit 10:16 (quit) asumu_: Client Quit 10:17 (join) asumu 10:26 (join) mizu_no_oto 10:26 (quit) mceier: Quit: leaving 10:26 (join) anRch 10:27 (quit) hkBst: Ping timeout: 272 seconds 10:28 (join) hkBst 10:33 (quit) _tca: Remote host closed the connection 10:37 (join) Kaylin 10:37 (quit) tilde`: Ping timeout: 252 seconds 10:40 (join) tilde` 10:42 (join) rins 10:42 (quit) hkBst: Ping timeout: 272 seconds 10:49 (quit) anRch: Ping timeout: 248 seconds 10:52 (join) anRch 10:56 (join) hkBst 11:00 (join) dzhus 11:01 (quit) hkBst: Ping timeout: 252 seconds 11:08 stamourv: rudybot: doc in-indexed 11:08 rudybot: stamourv: your sandbox is ready 11:08 rudybot: stamourv: http://docs.racket-lang.org/reference/sequences.html#(def._((lib._racket%2Fprivate%2Fbase..rkt)._in-indexed)) 11:08 stamourv: lewis1711: ^ 11:09 stamourv: djcoin: The cool thing about Racket is that anyone can build such as a language, and it's as easy as writing a library. 11:09 stamourv: In fact, languages *are* libraries in Racket. 11:10 (quit) Kaylin: Ping timeout: 246 seconds 11:10 stamourv: A couple of days ago, soegaard mentioned a project that sounds like what you're talking about: https://github.com/samsergey/formica 11:14 (join) didi 11:16 djcoin: stamourv: yeah that's why I was asking, i'm just beginning racket (and so does not know the environment) but I guess it would be possible to do so :) 11:16 djcoin: thanks for your reply 11:18 stamourv: djcoin: Once you become familiar with Racket, I highly recommend dyoo's excellent Brainfudge tutorial. It walks you through implementing your own #lang language. 11:18 stamourv: hashcollision.org/brainfudge/ 11:19 stamourv: Matthew also had a great language-building tutorial at Racketcon last year, but you may need some familiarity with macros to fulyl understand it. The link should be available from the Racketcon web page. 11:19 soegaard: Also see Lazy Racket for something in the "Haskell" direction. 11:20 stamourv: As for understanding macros, I recommend greghendershott's Fear of Macros. 11:20 stamourv: www.greghendershott.com/fear-of-ma 11:20 stamourv: www.greghendershott.com/fear-of-macros 11:20 stamourv: Not sure what happened there. 11:20 djcoin: :) 11:20 djcoin: stamourv: thanks a lot ! 11:21 greghendershott: stamourv: Syntax transformer error? 11:21 stamourv: No problem! If you have any questions, feel free to ask. :) 11:21 stamourv: greghendershott: Browser selection failure. 11:21 greghendershott: :) 11:22 stamourv: I'm pretty clumsy with the mouse. 11:24 (quit) anRch: Quit: anRch 11:26 (join) Kaylin 11:31 (join) hkBst 11:33 (join) egnarts-ms 11:36 (quit) tilde`: Quit: kthxbai 11:37 (join) mceier 11:40 (quit) hkBst: Ping timeout: 245 seconds 11:42 (quit) sirdancealot: Ping timeout: 255 seconds 11:43 (join) sirdancealot 11:44 (join) myx 12:03 (quit) francisl: Quit: francisl 12:20 (quit) Kaylin: Quit: Leaving. 12:21 (join) ASau 12:25 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 12:38 greghendershott: I'm having a serious infatuation with the Clojure threading macros -> and ->> 12:42 greghendershott: Writing (-> a f0 f1 f2) instead of (f2 (f1 (f0 a))) can be really clear. 12:43 greghendershott: And combined with #%app handing (dict? any/c) as (dict-ref any/c) lets you write nicely concise nested dict-refs as (-> dict key0 key1 key2). Which is really handy with stuff like JSON (where it's hasheq). 12:45 greghendershott: ^ I meant irc://znc.greghendershott.com:6667/#%25app handling both (dict key) and (key dict) as (dict-ref dict key) 12:45 greghendershott: Um, huh?? 12:46 greghendershott: ^ I meant #%app handling both (dict key) and (key dict) as (dict-ref dict key) 12:48 (quit) Shviller: Ping timeout: 246 seconds 12:49 (join) Shviller 12:56 (quit) gf3: Ping timeout: 248 seconds 13:01 soegaard: It is indeed fun to experiment with syntax. It is expensive to modify %app for all applications, so one option is to rebind the uses of #%app that are written written with { }. 13:01 soegaard: See https://github.com/soegaard/this-and-that/tree/master/brevity for two such experiments. 13:02 (join) gf3 13:02 soegaard: Besides syntax for hashes there are convenient syntax for comon string operations. E.g. {"foobar" 3 _} as short for (substring "foobar" 3 (string-length "foobar")) 13:03 greghendershott: soegaard: Oh neat. *perusing* 13:04 soegaard: I think I forgot to commit examples. 13:05 (join) dyoo 13:11 greghendershott: Is it just me or is GitHub suddenly down? 13:11 dyoo: checking 13:11 dyoo: appears slow to connect. Yup, I also can't connect to it successfully. 13:12 dyoo: https://status.github.com/ says that they're up though. Hmm. 13:14 dyoo: greghendershott: unrelated, but so you've been looking at asumu's clojure project as well? 13:14 greghendershott: dyoo: Yes I have. 13:14 greghendershott: I like. 13:14 dyoo: How is it? I don't know anything about clojure unfortunately. 13:15 greghendershott: I've only read about Clojure not sleeves rolled up. But it seems good. 13:15 greghendershott: I was however thinking of doing something myself where the spirit is not so much #lang clojure, as instead #lang clojure-ish 13:16 dyoo: hmm.. ok. 13:16 greghendershott: For example the -> id for threading macro is already taken for contracts. And using :keyword for Clojure maps feels weird in Racket 13:16 greghendershott: I'm more interested in the threading macros, and also an application syntax for dicts 13:17 dyoo: how about ~> ? 13:17 dyoo: it looks more thready 13:17 greghendershott: Yeah or two hyphens was my other idea, and quicker to type than shift for ~ 13:17 greghendershott: Also I see ~> in Ruby as having some meaning I forget. 13:18 greghendershott: But yes it's very "thready", you're right :) 13:18 greghendershott: Anyway I was thinking about it as adopting a couple neat ideas from Clojure, as opposed to a way to port Clojure programs or buy into it more deeply. 13:19 (quit) eikonos: Quit: Leaving. 13:21 (join) Fare 13:23 (quit) sirdancealot: Ping timeout: 245 seconds 13:25 (join) Kaylin 13:25 (join) anRch 13:31 dyoo: greghendershott: github looks back 13:31 (join) Nisstyre-laptop 13:32 (quit) djcoin: Quit: WeeChat 0.3.9.2 13:33 (quit) bitonic: Remote host closed the connection 13:34 (join) bitonic 13:34 (join) RacketCommitBot 13:34 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/vOpQig 13:34 RacketCommitBot: racket/master 405e51b Robby Findler: adjust contour to track edit sequences better... 13:34 RacketCommitBot: racket/master 76cc599 Robby Findler: fix bug in check syntax introduced when adding the... 13:34 RacketCommitBot: racket/master 014abe6 Robby Findler: Rackety 13:34 (part) RacketCommitBot 13:36 (join) sirdancealot 13:38 (join) jonrafkind 13:42 (quit) dyoo: Quit: dyoo 13:47 (quit) bitonic: Ping timeout: 245 seconds 13:48 (quit) jeapostrophe: Ping timeout: 245 seconds 13:48 (join) Aune 13:49 (join) dyoo 13:50 (quit) anRch: Quit: anRch 13:52 (join) francisl 13:57 (quit) egnarts-ms: Ping timeout: 245 seconds 14:02 (join) billyoc 14:06 (quit) Aune: Quit: Hath Deprated 14:10 (quit) soegaard: Quit: soegaard 14:24 (join) gridaphobe 14:25 (quit) Nisstyre-laptop: Quit: Leaving 14:34 (join) Nisstyre-laptop 14:47 (quit) jonrafkind: Ping timeout: 256 seconds 14:48 (join) bitonic 15:02 (join) jeapostrophe 15:02 (quit) jeapostrophe: Changing host 15:02 (join) jeapostrophe 15:10 (join) rbarraud__ 15:10 (quit) Nisstyre-laptop: Quit: Leaving 15:16 (quit) rbarraud__: Ping timeout: 264 seconds 15:17 (join) rndnick4376 15:23 (quit) ChanServ: *.net *.split 15:30 (join) ChanServ 15:32 (join) jonrafkind 15:36 (quit) ChanServ: *.net *.split 15:37 (join) ChanServ 15:38 (quit) ChanServ: *.net *.split 15:38 mye: can someone explain this error message: 15:38 mye: Cannot stuff (kont #) into a URL because it contains non-serializable pieces. Convert # to a serializable struct 15:39 mye: why does it tell me to convert a procedure to a struct 15:39 dyoo: mye: odd. Unsure. 15:39 mye: I've read something that stateless servlets put lambdas in structures or so 15:39 (join) ChanServ 15:40 dyoo: where does the lambda come from? it looks like it comes from somewhere in formlets, right? 15:41 mye: dyoo: I can't tell which one it's complaining about. It's formlet-process I think 15:41 dyoo: hmm.. The error is saying that it doesn't know how to serialize the result of 'cross'. 15:42 dyoo: The formlet library itself appears to be written in racket/base, and that probably would cause a problem for the serializable continuation part. 15:43 dyoo: out of my element, admittedly. You might need to check with Jay about this one. 15:59 (quit) rndnick4376: Remote host closed the connection 16:04 (part) roderic 16:06 (join) mizu_no_oto 16:14 (quit) newblue: Quit: leaving 16:18 (join) bitonic` 16:21 (quit) bitonic: Ping timeout: 255 seconds 16:36 (nick) bitonic` -> bitonic 16:38 (join) RacketCommitBot 16:38 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Zw06pg 16:38 RacketCommitBot: racket/master deac3fa Robby Findler: fix a bug in highlight-range exposed by the contour window... 16:38 (part) RacketCommitBot 16:42 (quit) ChanServ: *.net *.split 16:43 (join) soegaard 16:46 (join) ChanServ 16:50 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 17:08 (topic) -: Racket -- http://racket-lang.org -- RacketCon videos/slides: http://con.racket-lang.org -- logs at http://racket-lang.org/irc-logs/ 17:08 (names) -: gabot samth @ChanServ soegaard bitonic jonrafkind jeapostrophe billyoc francisl dyoo sirdancealot Kaylin Fare gf3 Shviller ASau myx mceier didi dzhus rins asumu jao parcha Shvillr rmathews sysop_fb mye tobi sizz noelw karswell` mithos28 notdan ivan\ qrstuv1 juanfra__ strawmn cdidd m4burns cipher Demosthenex Nisstyre bjz chandler rudybot offby1 errstr em Shambles_ merijn jschuster mau mario-goulart dca- basepi CoverSlide snorble_ fasta danl-ndi noam friscosam 17:08 (names) -: SeanTAllen cataska kristofer acarrico Cryovat Nereid SHODAN hyko ormaaj DarthRamone whoops otterdam Twey blubberdiblub eataix jaimef bartbes dented42 xulfer sethalves dsantiago ozzloy micro__ majoh spanner mattmight rapacity ivan` willem eMBee cky Raynes bremner ohama Draggor elliottcable xian pono JStoker greghendershott 17:09 (join) jrslepak 17:09 (join) stchang 17:12 (join) stamourv 17:14 (quit) Kaylin: Quit: Leaving. 17:14 (join) RacketCommitBot 17:14 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/sccoqA 17:14 RacketCommitBot: racket/master 83413e4 Vincent St-Amour: Fix docs for text-based TR optimization logging.... 17:14 RacketCommitBot: racket/master bf2768f Vincent St-Amour: Allow cast in typed/racket/no-check. 17:14 (part) RacketCommitBot 17:17 (join) gridaphobe 17:23 (quit) bitonic: Ping timeout: 264 seconds 17:23 (join) bitonic 17:29 (quit) dzhus: Remote host closed the connection 17:39 (join) tilde` 17:39 (quit) sirdancealot: Ping timeout: 256 seconds 17:41 (join) Kaylin 17:54 dyoo: mye: it might be useful to show the code that wasn't working and the fixed version to Jay. 17:56 (quit) bitonic: Ping timeout: 256 seconds 17:57 (join) bitonic 17:59 (join) anRch 18:03 (join) mizu_no_oto 18:08 (quit) bitonic: Ping timeout: 246 seconds 18:20 (quit) francisl: Ping timeout: 240 seconds 18:22 (quit) tilde`: Ping timeout: 272 seconds 18:22 (quit) jeapostrophe: Read error: Operation timed out 18:25 (quit) gridaphobe: Ping timeout: 256 seconds 18:25 (join) tilde` 18:26 (quit) didi: Ping timeout: 276 seconds 18:29 (quit) soegaard: Quit: soegaard 18:41 (quit) mye: Quit: mye 18:41 (join) gridaphobe 18:43 (quit) Kaylin: Read error: Connection reset by peer 18:44 (join) Kaylin 18:57 (quit) anRch: Quit: anRch 19:03 (quit) rudybot: Quit: time to brush my teeth 19:03 (join) RacketCommitBot 19:03 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/-xgglg 19:03 RacketCommitBot: racket/master 31b6648 Danny Yoo: Add test case to show bug with inflate.... 19:03 RacketCommitBot: racket/master c6775cc Danny Yoo: Fix to inflate: treat EOF as a character, as in the C code.... 19:03 (part) RacketCommitBot 19:03 (quit) offby1: Quit: making sure rudybot doesn't mess up the bathroom 19:07 (join) rudybot 19:10 (quit) billyoc: Remote host closed the connection 19:14 (nick) samth -> samth_away 19:18 dyoo: does anyone know how to use the 'deps argument for PLanet2 packages? 19:18 (quit) Kaylin: Read error: Connection reset by peer 19:20 dyoo: Ah, never mind. Found out the problem. The info.rkt that describes the dependencies of a PLanet2 package needs to be at the toplevel package directory. 19:23 (quit) rins: Ping timeout: 240 seconds 19:26 (join) Kaylin 19:27 (join) offby1 19:27 (quit) offby1: Changing host 19:27 (join) offby1 19:29 (quit) Kaylin: Read error: Connection reset by peer 19:31 (join) Kaylin 19:33 (quit) Kaylin: Read error: Connection reset by peer 19:35 (join) Kaylin 19:35 (join) bitonic 19:38 (quit) Kaylin: Read error: Connection reset by peer 19:41 (join) Kaylin 19:44 (quit) tilde`: Quit: kthxbai 19:52 (join) sirdancealot7 19:53 (quit) Kaylin: Read error: Connection reset by peer 19:53 (join) didi 19:54 (join) Kaylin 20:02 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 20:03 (join) danl-ndi_ 20:03 danl-ndi_: ok, syntax xformer question 20:03 danl-ndi_: rudybot: (define (test-syntax stx) 20:03 danl-ndi_: (syntax-case stx () 20:03 danl-ndi_: ((one two (three four ...) ...) 20:03 rudybot: danl-ndi_: Imagine this in a REPL: (define (test) (test-syntax 'x)) (define-syntax test-syntax (syntax-rules () ((_ x) (list x x)))) (test) => (x x) 20:04 danl-ndi_: #'(one two (three four ...) ...)))) 20:04 danl-ndi_: urk 20:04 danl-ndi_: rudybot: (define (test-syntax stx) (syntax-case stx () ((one two (three four ...) ...) #'(one two (three four ...) ...)))) 20:04 rudybot: danl-ndi_: your sandbox is ready 20:04 rudybot: danl-ndi_: Done. 20:04 danl-ndi_: rudybot: (display (test-syntax #'(1 2 (3 4 5 6) (7 8 9)))) 20:04 rudybot: danl-ndi_: ; stdout: "#" 20:05 danl-ndi_: well, ... hmm. ok the problem is that the line number is from the function, not the original expression 20:05 danl-ndi_: does anyone know how to fix this? 20:06 dyoo: syntax/loc? 20:06 dyoo: let's see.. 20:06 dyoo: rudybot: (define (test-syntax stx) (syntax-case stx () ((one two (three four ...) ...) (syntax/loc stx (one two (three four ...) …))))) 20:06 rudybot: dyoo: your sandbox is ready 20:06 rudybot: dyoo: error: #:1:104: syntax: missing ellipses with pattern variable in template in: three 20:07 jonrafkind: lol osx and racket dont like each other 20:07 dyoo: stupid unicode! :) 20:08 danl-ndi_: dyoo: tried it. it fails in the inner parenthesized lists 20:08 dyoo: give me a sec to fix that… ok, let's try it again.. 20:08 danl-ndi_: as in, the (3 4 5 6) (7 8 9) syntaxes are from the function still. the 1 and 2 and the outer get correct info 20:08 dyoo: so whenever we're creating new syntax (the non-identifiers), we need to be careful of the location stuff. 20:09 dyoo: You can use things like syntax-parse to grab a hold of the structure itself. Something like this: 20:09 (quit) danl-ndi: Quit: leaving 20:09 (nick) danl-ndi_ -> danl-ndi 20:10 danl-ndi: my task is to get the thing matched by four to have original source info 20:10 dyoo: danl-ndi: https://gist.github.com/dyoo/4719330 20:11 dyoo: danl-ndi: it's the part when we're restructuring that we can accidently omit location, so the less restructuring we do, the better. 20:12 danl-ndi: ok sounds good. I'm needing to destructure though..... 20:12 danl-ndi: even more specifically I need properly sourced ((four ...) ...) 20:13 danl-ndi: if that makes any sense 20:14 (quit) dyoo: Quit: dyoo 20:14 (join) francisl 20:18 (join) dauterive 20:19 danl-ndi: the kicker is that I think I had this working 20:28 (join) danking 20:31 danl-ndi: ooh syntax-parse can do it.... 20:49 (join) eli 20:51 (join) sw2wolf 20:53 (quit) bitonic: Ping timeout: 240 seconds 20:55 (quit) jonrafkind: Ping timeout: 276 seconds 21:14 (quit) dauterive: Quit: Leaving 21:17 greghendershott: syntax-parse question. The #:fail-when and #:fail-unless directives backtrack and try to match other clauses. OK, but if I want to just fail with an error message? 21:19 (join) dnolen 21:53 (join) RacketCommitBot 21:53 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/3UuTkg 21:53 RacketCommitBot: racket/master e7e64f4 Robby Findler: a better version of deac3fa2b30a45d0945f895f4181d916df922b58... 21:53 (part) RacketCommitBot 21:59 (quit) xian: Ping timeout: 264 seconds 21:59 (join) xian 22:03 (quit) gridaphobe: Ping timeout: 244 seconds 22:04 (quit) basepi: Ping timeout: 256 seconds 22:05 (join) basepi_ 22:05 (nick) basepi_ -> basepi 22:10 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 22:32 (quit) cataska: Quit: ERC Version 5.3 (IRC client for Emacs) 22:36 (join) qyqxt 22:41 qyqxt: given the following code, how make it more functional, i.e remove set!: http://paste.lisp.org/display/135248 22:41 qyqxt: thanks 22:41 (quit) Fare: Ping timeout: 245 seconds 22:47 (join) cataska 22:48 didi: qyqxt: Totally untested and straight transformation: 22:50 qyqxt: thank you, didi 23:15 (quit) rmathews: Quit: ... 23:27 (join) Kaylin1 23:27 (quit) Kaylin: Ping timeout: 255 seconds 23:39 (quit) parcha: Remote host closed the connection 23:40 (quit) didi: Ping timeout: 252 seconds 23:43 (join) jonrafkind 23:43 (join) parcha 23:50 (quit) Kaylin1: Read error: Connection reset by peer 23:51 (join) bjz_ 23:52 (quit) bjz: Read error: Connection reset by peer 23:52 (join) rmathews