Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Scopes as an alternative to setters? #69

Description

@leithaus

Have you tried a syntactic form for parameter scopes? Something like with( ){ … }. Here the scope-object contains all the fields that might be set with setters. Then one could provide some default scope objects and a syntax for describing them .

let in …

where is of the form
new( scope ) { : , … , : }
mod( ){ : , … , : }

It may be too verbose, but lexical scopes save a lot of confusion around where parameters get set.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions