[First-Class Calc] Be more consistent meta.type-of() return value

This commit is contained in:
Natalie Weizenbaum 2021-08-12 14:54:32 -07:00
parent c118446e33
commit 3574f2f153
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,9 @@
* Return calculations from `meta.calc-args()` as calculations, not unquoted
strings.
* Return an unquoted string with value `"calculation"` from `meta.type-of()` for
calculations, rather than a quoted string with value `"calc"`.
* Simplify `calc(a + -b)` to `calc(a - b)`.
* Fix some broken formatting.

View File

@ -649,7 +649,8 @@ Add the following clause to the [`meta.type-of()`] function and the top-level
[`meta.type-of()`]: ../spec/built-in-modules/meta.md#type-of
* If `$value` is a calculation, return `"calc"`.
* If `$value` is a calculation, return an unquoted string with value
`"calculation"`.
### `meta.calc-name()`