Skip to content

@[1b; - Makes me cry with sadness #764

Description

@ryanhamilton
if[@[1b; `.access.enabled;0b]; ('"controlaccess.q already active";exit 1) ]

This throws a type error every time and is horrible behavior to rely on.
It relies on q applying 1b to something that it knows can never succeed , so that you get your fallback value.
PeachQ would prefer to error on the 1b itself as a bad argument.

if[@[1b; `.access.enabled;0b]; ('"controlaccess.q already active";exit 1) ]

Activity

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

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