Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Add runtime errors when constructing any element with children declarations or categories #276

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

fredemmott
Copy link
Contributor

  • children declarations are meant to be (and appear to be) parse errors
    with the new syntax
  • categories can be fully be replaced with interfaces; let's ban them
    here in expectation of a hack/parser ban in the future
  • remove the consistency validation trait: it can't be used even before
    this diff, but doubly so now that it throws
  • raising exceptions from the constructor gives clearer traces than from
    render

…egories

- children declarations are meant to be (and appear to be) parse errors
  with the new syntax
- categories can be fully be replaced with interfaces; let's ban them
  here in expectation of a hack/parser ban in the future
- remove the consistency validation trait: it can't be used even before
  this diff, but doubly so now that it throws
- raising exceptions from the constructor gives clearer traces than from
  render
@fredemmott fredemmott requested a review from jjergus July 22, 2020 19:56
@fredemmott fredemmott changed the title Add runtime errors when constructing any element with children or categories Add runtime errors when constructing any element with children declarations or categories Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants