-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add currentSettingsAsCompileString #33
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
+ NodeProxy { | ||
accessStr { | envir | | ||
var accessStr = "a", nameStr, isAnon; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not |
||
|
||
envir = envir ? currentEnvironment; | ||
|
||
nameStr = envir.use { this.asCompileString }; | ||
isAnon = nameStr.beginsWith("a = "); | ||
if (isAnon.not) { accessStr = nameStr }; | ||
|
||
^accessStr; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can drop the semicolon if you like. |
||
} | ||
|
||
currentSettingsAsCompileString { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. settingsAsCompileString would be better. Settings are always current, just like any object. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, I would propose settingsAsCode. Also for consistency, PatternProxy should have a settingsAsCode method. And all asCode and settingsAsCode methods should allow passing in an accessString 2c, adc There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please try :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will do!
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hello, so wow; I was not aware of so would
do the trick? |
||
^this.nodeMap.asCode(this.accessStr, true); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling it accessString reads better, and we know that it is not a stream.