@laurent.orseau and I have run into a bug, which seems to manifest only on Racket CS. Any clues?
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
?
I don’t think any 3d syntax is created. Everything works on Racket BC.
that looks like 3d syntax to me
i would think you wanted #'_double
Ah!
Thanks @gfb @samth . I have pushed a fix.
Anyone with Racket CS who want’s to test it?
Installs for me on Racket v7.6 [cs] (Linux)
Thanks!
Any vim fans? Bowen Fu is implementing a vim-like editor in Racket: https://github.com/BowenFu/racket-vim
Instant follow
I think the style guide broke [it might have been <https://github.com/racket/racket/commit/24cdc589510465f5211d37f15cca939cec99cbe5|this commit>]
Judging from the screenshot in https://github.com/racket/racket/pull/3060, I think it’s expected
Though I agree that width = 100% would look even better
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.
Ahhh, I see
@weberc2 has joined the channel
HI folks. I’m new to Racket and trying to make sense of this typed racket error:
(: hash (Bytes * -> Bytes))
(define (hash args) (apply bytes-append args)) ; Type Checker: Bad arguments to function in `apply':
However this works fine: (: hash (Bytes * -> Bytes))
(define hash (lambda args (apply bytes-append args)))
I thought the first form was just syntax sugar for the second, but clearly I’m misunderstanding. Can someone help demystify?
@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 ....))
Thanks so much. That was it!