Macaulay2 / Macaulay2/M2

Changing default values for options

Open
#2,240 16 comments 0 reactions 0 assignees View on GitHub
Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

It would be nice to have a facility to change the default value of an optional argument. E.g., there could be a method `setDefault` with `setDefault(SVD,DivideConquer=>true)` resulting in resetting the default from `false` to `true`.

This would be useful in a scenario when a user

- writes code that relies on popular methods (e.g., `SVD`, `gb`, `res`, etc.) without explicitly referring to strategies, and
- experiments later by tweaking strategies.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or entry points are named in the issue. Start by locating how optional arguments and strategy defaults are defined, then determine the scope and semantics of a facility that changes defaults; done should include a documented way to override a method's default and coverage for the SVD-style example.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.