On Wednesday, July 24, 2019 at 7:46:11 PM UTC-7, Hendrik Boom wrote: > > Too bad we have to use #/ instead of / in ordinary Racket because / is > already used for division. There are a lot more #/'s then divisions in > a typical Racket program. > > Redefining div to mean division isn't a really elegant solution. > Probably not orthogonal to existing code. >
It wouldn't be hard to set it up to use / as the readtable entry, and I'd like to add an option like that if that's what people think would be a better experience. I think it just means the division operator would have to be written |/| to be read as a symbol, as would any other symbols that started with the / character. > Another parenthesis-avoiding trick I use back then was to use > (let a whatever stuff) > to mean what Racket expresses as > (let [[a whatever]] stuff) > and then repeating /let gives the iterated sytactically non-nesting > let with fewer parentheses. > But this is incompatible with Racket. > It can always be named something else. :) A lot of my Parendown-based code uses (w- a whatever #/w- b whatever #/w- c whatever stuff) using the `w-` I put Lathe Comforts <https://docs.racket-lang.org/lathe-comforts/index.html?q=w-#%28form._%28%28lib._lathe-comforts%2Fmain..rkt%29._w-%29%29> . -Nia -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/6550d6cc-f044-40c8-8505-c88df1b4bef2%40googlegroups.com.

