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

[JS Calculations] Add a proposal #3521

Merged
merged 1 commit into from Mar 24, 2023
Merged

[JS Calculations] Add a proposal #3521

merged 1 commit into from Mar 24, 2023

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Mar 24, 2023

No description provided.

@nex3 nex3 requested a review from jathak March 24, 2023 00:56
@nex3 nex3 merged commit 39d9064 into main Mar 24, 2023
6 checks passed
@nex3 nex3 deleted the calc-js branch March 24, 2023 23:44
* - Let `calculation` be a calculation with name `"calc"` and a `argument` as
* its single argument.
*
* - Return the result of [simplifying] `calculation`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we enforce that this returns a simplified calculation ? It would force to duplicate the simplification algorithm in all embedded hosts

/** `internal`'s `right` field. */
get right(): CalculationValue;

/** Whether `internal` is equal to `other.internal` in Sass. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the description looks weird to me, as there is no internal in this type definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See

* > To make the spec terser and easier to author, each subclass that extends
* > `Value` has a virtual, private property named `internal` that refers to the
* > Sass value it represents.

@stof stof mentioned this pull request Apr 4, 2023
13 tasks
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

Successfully merging this pull request may close these issues.

None yet

3 participants