Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Neil Van Dyke
FWIW, an unreleased Racket mode for Emacs (which did fast incremental lexing, and some higher parsing[1]) intentionally colored the entire expression after `#;` as a comment.  I don't recall whether I decided to have it skip over the commented expression for sibling-level sexp-based editor oper

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Christopher Lemmer Webber
Daniel Prager writes: > If only there was a way to have the best of both worlds. > > E.g. change the background color for #; to something reminiscent of the > foreground color of regular comments: > > (display #|Comment|# > ; comment > #;(string-join "comm" "ent") > "Hel

Re: [racket-users] raco config-path

2018-10-07 Thread Lehi Toskin
You are correct. `--config-path` isn't really what I thought it was. That being said, I'm no closer to understanding this default preferences window that appears on macOS[1] GUI programs. [1] https://files.catbox.moe/cp6vsn.png On Saturday, October 6, 2018 at 10:08:33 AM UTC-7, Matthew Flatt wr

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Daniel Prager
If only there was a way to have the best of both worlds. E.g. change the background color for #; to something reminiscent of the foreground color of regular comments: (display #|Comment|# ; comment #;(string-join "comm" "ent") "Hello world") Or perhaps something like t

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Matthias Felleisen
>> I find the #; construct very convenient for commenting out sexps, but in Dr >> Racket the visual cue of switching to comment-color is missing. >> >> Example (in Racket 6.12): >> >> [image: Screen Shot 2018-10-07 at 10.19.09 pm.png] >> >> Expected: >> >> *#lang racket* >> >> (display #|Com

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-07 Thread Sam Tobin-Hochstadt
The `math/matrix` library aims at functional arrays, that is arrays that aren't mutated but are instead transformed into new arrays. However, if you want mutable arrays, then you should probably use the `mutable-array` constructor to create them, and then `array-set!` will work. Sam On Sun, Oct 7

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-07 Thread Ricardo Iglesias
> > >I think you want the `matrix-ref` function. > While this does give me the value, I am unable to set it. Calling (define M (matrix ([1 2 3] [4 5 6]))) (set! (matrix-ref M 0 2) 5) Leads to the error: ; .../Example.rkt:228:6: set!: not an identifier - And array-set! for cha

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-07 Thread Jens Axel Søgaard
And array-set! for changing the value of an entry. /Jens Axel Den søn. 7. okt. 2018 kl. 16.46 skrev Sam Tobin-Hochstadt < sa...@cs.indiana.edu>: > I think you want the `matrix-ref` function. > > Sam > On Sun, Oct 7, 2018 at 12:30 AM Ricardo Iglesias > wrote: > > > > Sorry for the confusing wor

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-07 Thread Sam Tobin-Hochstadt
I think you want the `matrix-ref` function. Sam On Sun, Oct 7, 2018 at 12:30 AM Ricardo Iglesias wrote: > > Sorry for the confusing wording. > Basically, All I want is to be able to do > G[ row ][ col ] = value > > In Racket. I've been messing with Racket this afternoon and have an engine > that

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Matthias Felleisen
For quite some time, I have > On Oct 7, 2018, at 8:05 AM, Christopher Lemmer Webber > wrote: > > I agree that they should be shown as comments. > > In many ways I like what happens (probably unintentionally) in my emacs > setup: I have rainbow-delimeters enabled, which colors the parenthe

Re: [racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Christopher Lemmer Webber
I agree that they should be shown as comments. In many ways I like what happens (probably unintentionally) in my emacs setup: I have rainbow-delimeters enabled, which colors the parentheses. When I comment out the s-exp with #; the sexp looks commented out, but the parentheses remain colored. Whi

[racket-users] Should #; comments be colored as comments or code in Dr Racket?

2018-10-07 Thread Daniel Prager
I find the #; construct very convenient for commenting out sexps, but in Dr Racket the visual cue of switching to comment-color is missing. Example (in Racket 6.12): [image: Screen Shot 2018-10-07 at 10.19.09 pm.png] Expected: *#lang racket* (display #|Comment|# ; comment #;(