Skip to content

Getting Started guide paragraph "Types for Tasks and Settings" is unclear #354

@prokopowicz

Description

@prokopowicz
  1. what is meant by the example "taskKey := 42" ? Is taskKey the name of some TaskKey? If so it should be called someTaskKey or aTaskKey. same for settingKey. Otherwise it conflicts in the reader's mind with the creation method taskKey.

  2. The assignment someTaskKey := 42 doesn't work cleanly. You get a warning:
    "a pure expression does nothing in statement position; you may be omitting necessary parentheses" this example should work cleanly.

  3. "From a type-system perspective, the Setting created from a task key is slightly different from the one created from a setting key." The notion that a Setting is created from a task key has not been discussed at all. When is the Setting created? Why do setting keys and task keys both create Settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions