soegaard2
2020-5-8 16:16:57

@laurent.orseau and I have run into a bug, which seems to manifest only on Racket CS. Any clues?

https://github.com/soegaard/flmatrix/issues/4


gfb
2020-5-8 16:47:48

Is https://github.com/soegaard/flmatrix/blob/20289805017f312e52a909487aa74e0bd3a841da/flmatrix.rkt#L372 creating 3D syntax? Could you introduce the identifiers instead, offhand something like (datum->syntax stx '_double) instead of _double ?


soegaard2
2020-5-8 16:48:51

I don’t think any 3d syntax is created. Everything works on Racket BC.


samth
2020-5-8 16:49:44

that looks like 3d syntax to me


samth
2020-5-8 16:49:56

i would think you wanted #'_double


soegaard2
2020-5-8 16:50:00

Ah!


soegaard2
2020-5-8 16:54:03

Thanks @gfb @samth . I have pushed a fix.


soegaard2
2020-5-8 16:54:17

Anyone with Racket CS who want’s to test it?


samdphillips
2020-5-8 16:59:41

Installs for me on Racket v7.6 [cs] (Linux)


soegaard2
2020-5-8 16:59:58

Thanks!


soegaard2
2020-5-8 17:47:32

Any vim fans? Bowen Fu is implementing a vim-like editor in Racket: https://github.com/BowenFu/racket-vim


spdegabrielle
2020-5-8 18:28:58

Instant follow


michaelmmacleod
2020-5-8 22:29:40

I think the style guide broke [it might have been <https://github.com/racket/racket/commit/24cdc589510465f5211d37f15cca939cec99cbe5|this commit>]


sorawee
2020-5-8 22:35:04

Judging from the screenshot in https://github.com/racket/racket/pull/3060, I think it’s expected


sorawee
2020-5-8 22:35:55

Though I agree that width = 100% would look even better


michaelmmacleod
2020-5-8 22:37:36

It’s not about the width—the first example on the right side, the “really bad” example of how to arrange parens shouldn’t have them all on the same line. The example is supposed to show how not to arrange parentheses.


sorawee
2020-5-8 22:39:46

Ahhh, I see


weberc2
2020-5-8 22:41:29

@weberc2 has joined the channel


weberc2
2020-5-8 22:43:11

HI folks. I’m new to Racket and trying to make sense of this typed racket error:

(: hash (Bytes * -&gt; Bytes)) (define (hash args) (apply bytes-append args)) ; Type Checker: Bad arguments to function in `apply':


weberc2
2020-5-8 22:43:58

However this works fine: (: hash (Bytes * -&gt; Bytes)) (define hash (lambda args (apply bytes-append args)))


weberc2
2020-5-8 22:44:47

I thought the first form was just syntax sugar for the second, but clearly I’m misunderstanding. Can someone help demystify?


michaelmmacleod
2020-5-8 22:46:39

@weberc2 You probably want a rest argument, i.e., (define (hash . args) .....) (the "." is the key).

(define (foo x) ....) is like (define foo (lambda (x) ....)), while (define (foo . x) ....) is like (define foo (lambda x ....))


weberc2
2020-5-8 23:04:58

Thanks so much. That was it!