Repository navigation
m2-ls 2.10.0
-
The formatter lays files out as the Macaulay2 Core library is written:
each line indented from the one above by the brackets it leaves open, a
closer keeping its body's indentation, tabs every 8 columns; padding that
aligns with a neighbouring line stays; line breaks
are kept unlesslines.breaksasks for wrapping or the Core layout of
multi-line constructs. It refuses output that parses differently from its
input, and formatting a formatted file changes nothing. -
The
formattingsettings are grouped intoindent,lines,layout,
spacingandcomments, each key one fixed rule, with the built-in
presetsprofile = "core"and"modern". Every flat key of 2.9
still loads as its replacement, with a deprecation warning;
compactFactorOperatorsis reported as removed. Formatting no longer
follows the editor'stabSizeandinsertSpaces. -
The membership tests
.?and#?are plain operators, no longer tagged
memberAccess: they select nothing. -
Parentheses spanning lines are never reported as redundant control
parentheses: without themnew M from (f)followed by\ Lon the next
line would end at the line break. -
When every installation of a method returns the same type, T03 offers
declaring it once,method(…, TypicalValue => Boolean), as its preferred
fix, ahead of annotating each installation; Fix all in file inserts it
once. -
oo,ooo,ooooandoNare typed asCore.m2rotates them: muted
inputs count, each;-ended statement is its own numbered input, anull
value binds nooNand only shiftsoooandoooo, and inside a function
body they are unknown, as they are read at the call. -
TEST blocks and documentation examples see everything their package
exports: globals the package file defines, those of the files it loads, and
symbols only theexportcreates, such as an option name. E22 and S31 no
longer flag them there. -
S31 counts an earlier
export {"Name"}as introducingName. -
Add the
booleansemantic token type fortrue,falseand other
Booleanvalues (variableunderstandardOnly), so booleans keep their
colour inside TEST blocks. -
Highlighting a function's exits, from its
->or areturn, also lights
up the values its body ends with: each branch of a finalif, each
outcome of a finaltry. -
ideal,monomialIdeal,matrix,module,ring,monoid,net,
vectorandcomplexare typed as making the type they are named after, whatever
their argument:ideal R_*is anIdeal, so(ideal R_*)^3is one and
R/(ideal R_*)^3aQuotientRing. Before, an argument of unknown type
left themThing. -
S19, S20 and S21 no longer offer
T X := ffornew T from X := f,
which installs a different method. -
Remove S14 (
forwarding-lambda): replacingc -> f cwithflooksf
up at once instead of at the call, which breaks a name bound later, and
changes the class of the function. -
Method dispatch counts only the methods whose domain types are all visible
in the packages loaded, as an orphan rule would: a method of a package's
own type, such asideal(LieAlgebra)orPermutation ^ ZZ, no longer
widens results in a file that does not load the package.