Skip to content

Support {self: this} for fnUntraced #8101

Closed

Description

@ysulyma

What is the problem this feature would solve?

  • using Effect.fnUntraced() to define class methods (when tracing is not needed)

  • consistency with Effect.fn() API (I ran into this when I realized I didn't need Effect.fn() and refactored some usages to Effect.fnUntraced())

What is the feature you are proposing to solve the problem?

Effect.fnUntraced() should accept a { self: this } overload the same way that Effect.fn() does

What alternatives have you considered?

No response

Activity

  1. added
    enhancement
    on Sep 6, 2026
  2. ArjunCodess commented on Sep 19, 2026

    @ArjunCodess
    Contributor

    hi, i'd like to work on this.

    i'd copy the {self: this} overload from Effect.fn onto fnUntraced, so class methods can drop tracing without losing this. same types, same bind, just skip the tracer wrap.

    should the overload live next to fn in effect/Function, and do you want a test that a class method still sees this.foo after the refactor?

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions