pocmatos
2018-5-17 16:37:46

is there anything else on syntax-parse besides: http://docs.racket-lang.org/syntax/index.html?


pocmatos
2018-5-17 16:38:16

I would like to see something more hands on like, how to implement struct using syntax-parse.



ben
2018-5-17 16:43:13

here’s a macro that implements structs as lists https://groups.google.com/d/msg/racket-users/ss20lwfUhjs/F_-RU_qQAQAJ


pocmatos
2018-5-17 16:47:34

Thanks, that’s very helpful. I actually looked at the code for struct in the racket repo but it hasn’t been ported to syntax-parse yet.


lexi.lambda
2018-5-17 16:48:22

struct can’t use syntax/parse because syntax/parse’s implementation uses struct


oleg.patraschku
2018-5-17 17:06:21

@oleg.patraschku has joined the channel


pblasucci
2018-5-17 18:14:58

@pblasucci has joined the channel


samth
2018-5-17 18:27:30

removed an integration from this channel: https://racket.slack.com/services/B07TJ9DEW\|twitter


jjwiseman
2018-5-17 22:35:47

any idea what module-path-index-resolve: "self" index has no resolution is about? i see various references to it online but no conclusive answers.


mflatt
2018-5-18 00:17:29

It means that you have a module path index where module-path-index-split returns two #fs. It doesn’t stand for any particular module, but it used to mean “this module” within a module.


mflatt
2018-5-18 00:19:21

@jjwiseman ^


jjwiseman
2018-5-18 00:21:00

is it a symptom of an error in my code? i don’t think i’m doing anything fancy with modules…


jjwiseman
2018-5-18 00:30:35

i changed a #lang errortrace racket to #lang racket and no longer get that error. but that can’t be the root cause.


mflatt
2018-5-18 00:42:32

It might be a problem with #lang errortrace. Do you have a small-ish program you can send me?


awz.ang
2018-5-18 01:43:57

@awz.ang has joined the channel


jjwiseman
2018-5-18 01:44:35

@mflatt i don’t, sorry.