Skip to content

Conversation

@JirkaVebr
Copy link
Contributor

Admittedly, this is a bit sorcerous but I couldn't think of any other way to keep the M magic whilst also extending support to arbitrary units of length. Constructive suggestions welcome. At any rate, it is backwards compatible, and thus should be safe to merge.

@JirkaVebr JirkaVebr requested a review from enzy July 28, 2017 21:28
@JirkaVebr JirkaVebr force-pushed the pr/media-mixin-units branch from 7523e84 to 81e5a38 Compare July 28, 2017 22:14
Copy link
Contributor

@enzy enzy left a comment

Choose a reason for hiding this comment

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

Nemíchal bych jednotky a M keyword dohromady. Co to spíše předřadit? M120em

@JirkaVebr
Copy link
Contributor Author

Jenže tím by se vše úplně extrémně zesložitilo. Zatímco 120Mem je number s nestandardní jednotkou, M123em je string. Snadno bych mohl detekovat to M, ale následně pak z '123em' udělat číslo vyžaduje něco ve stylu této monstrozity, což je jak vystřižený z Cčka, a za tu cenu jsem tam nic takového dávat nechtěl. Přišlo mi, že jednotky M* jsou rozumný, pragmatický kompromis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants