- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Jul 2022 14:34:06 +0000
- To: public-design-tokens-log@w3.org
```json
{
"value": "10px"
}
```
vs.
```json
{
"value": {
"number": 10,
"unit": "px"
}
}
```
The first requires less keystrokes, so it is objectively simpler to write by hand.
Also easier to read as you do not even have to consciously think about `10px`, you immediately understand this as `10` with a unit of `px`.
The second is easier for software.
No need to format as a string before writing to a file and no need to parse when reading from a file.
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/149#issuecomment-1194131697 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 25 July 2022 14:34:08 UTC