-
Notifications
You must be signed in to change notification settings - Fork 239
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
Style guide and linter for M2 code #3290
Labels
Comments
|
|
Related changes to discuss: Macaulay2/M2-emacs#32 Macaulay2/M2-emacs#77 |
I would prefer no TABS at all. Some editors use default 4, 8, and although I have a hot key to switch that in emacs myself, it makes code look bad if viewed with other default. |
|
At the end of a package, use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I thought there was an issue about this already, but I can't find it.)
We need a basic linter for M2, but there needs to be a style guide first. We can use this issue to collect suggestions. I'll start with a few. Feedback for changing these are welcome!
(, {, [, <|
.for, do, list, while, if, then, else
, e.g.->
and=>
, e.g.Node, Key, ...
, but one more or less for cases like this is acceptable:(n, R, M)
.[x,y,z]
.= := -> => < ? | xor
The text was updated successfully, but these errors were encountered: