Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude <-- from comment syntax #49

Open
mahrud opened this issue Oct 2, 2023 · 0 comments
Open

Exclude <-- from comment syntax #49

mahrud opened this issue Oct 2, 2023 · 0 comments

Comments

@mahrud
Copy link
Member

mahrud commented Oct 2, 2023

I think it might be good to make an exception for <-- when graying out code, for instance here:

i12 : koszul vars R

       1      2      1
o12 = R  <-- R  <-- R
                     
      0      1      2

I think it's very rare for someone to intentionally write < before starting comments. It would have to be something really funky like:

if 0 <-- e.g. QQ or CC
   char R then print "R has positive characteristic"

Perhaps we could even introduce a new symbol <-- and change the interpreter to not take it as comments. This could be used like map(R <-- S, {...}), but maybe that's too much.

The other instance where things are inadvertently commented are lines involving quotients or fractions:

i20 : R = ZZ/101[x,y]

o20 = R

o20 : PolynomialRing

i21 : describe R

       ZZ
o21 = ---[x..y, Degrees => {2:1}, Heft => {1}]
      101

Not sure how to exclude this one from comments, but I think it would be worthwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant