generated from jackfirth/racket-package-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
new lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints
Description
#lang resyntax/test
test: "insantiate without positional arguments refactorable to new"
--------------------
#lang racket
(define (f cls x y)
(instantiate cls () ([x x] [y y])))
--------------------
--------------------
#lang racket
(define (f cls x y)
(new cls ([x x] [y y])))
--------------------When instantiate is used without positional arguments, it's equivalent to new. When used without by-name arguments, it's equivalent to make-object. Mixing the two is complicated and uses of instantiate that don't need to mix them should be refactored to one of the two simpler object creation forms.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints