spdegabrielle
2020-2-15 17:19:18

soegaard2
2020-2-15 17:58:47

Why does (expt 1 0.0) give 1 (instead of 1.0). If the exponent is inexact 0.0 the power must be approximately 1.0 (and not exact 1)?


soegaard2
2020-2-15 18:04:05

Because 1^x is constant 1…


jestarray
2020-2-15 18:10:48

is there a way to always turn on autocompletion instead of having to press control+/ ?


greg
2020-2-15 19:11:33

I don’t know if this is a @mflatt or @robby question (or other), but: https://gist.github.com/greghendershott/fdd6ba54571a07a475d2fa918a56a2c9


samth
2020-2-15 19:50:39

The answer is that your comment is right and they aren’t the same thing


greg
2020-2-15 21:40:23

That’s a reasonable answer.


greg
2020-2-15 21:41:44

In some sense it’s a better answer than “let’s enhance identifier-binding for Racket 7.x”, because it means I can make this work better in Racket Mode even for older versions of Racket, and, know I’m not pre-inventing a wheel.


samth
2020-2-15 21:42:51

I think the right question is “how should we support jump to definition in the presence of code transformation” and that should be a mailing list design discussion


greg
2020-2-15 21:44:43

That’s a good point. Like, one level is just the renaming. If syntax like racket/contract is going to introduce identifiers like id-provide/contract-bar.1, maybe it could leave a syntax-property with the original name. OTOH it’s not terribly hard to discover this given the nominal name and a little syntax-walking (which is what I’ve done for some years now, no problem).


greg
2020-2-15 21:45:40

The other level (what I was asking about today) is please at least give me the original module path. Also doable with determination and duct tape, but maybe could be supported differently in the future.


greg
2020-2-15 21:47:34

And there are probably more levels than I can even imagine, in the most general cases.


robby
2020-2-15 23:40:03

Also, it would be great if we were sharing more of the code that was doing these things between racket-mode and drr!


robby
2020-2-15 23:45:31

Woah! I just saw your blog post!


greg
2020-2-15 23:48:30

Yes we’re now sharing more code. :smile:


robby
2020-2-15 23:48:56

Looking at what some of you wrote, it seems like some of the things you did would be better done in the drracket library


robby
2020-2-15 23:49:07

?


robby
2020-2-15 23:49:16

In this paragraph “In a few cases, I need to extend this …”


robby
2020-2-15 23:50:10

… and when I say “better”, I really mean “better for drracket” :wink:


robby
2020-2-15 23:50:36

It woudl be totally fine to add new things in that giant list that gets produced


robby
2020-2-15 23:50:49

eg the binding occurrences that don’t have any references


robby
2020-2-15 23:51:27

and maybe we can avoid you having to walk the expanded syntax yourself? Just the iterator that goes over it is pretty complex.


robby
2020-2-15 23:55:28

Well, anyway, it is really great. Thank you!


notjack
2020-2-16 07:33:44

Rebellion record type pretty printing makes rackunit test failures so much easier to read