Skip to content

Coeffects: be clear about what's being documented in the introduction #1016

@fredemmott

Description

@fredemmott

https://docs.hhvm.com/hack/contexts-and-capabilities/introduction primarily gives examples using hypothetical contexts, and is effectively documentation of the syntax rather than how to actually use it.

While https://docs.hhvm.com/hack/contexts-and-capabilities/local-operations mentions they're hypothetical, this should really be up front - and introduction examples switched to using write_props if practical, so that they are real examples.

Additionally, we should document the real coeffects instead of/as well as the hypothetical ones

https://github.com/facebook/hhvm/blob/master/hphp/hack/src/naming/naming_special_names.rs#L728


Please don't change anything below this point.


  • Build ID: HHVM=HHVM-4.102.0:HSL=v4.94.0:2021-03-30T21:17:53+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
  • Page requested: /hack/contexts-and-capabilities/introduction
  • Page requested at: Wed, 31 Mar 2021 17:19:34 +0000
  • Controller: GuidePageController

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions