-
Notifications
You must be signed in to change notification settings - Fork 323
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
Substitute this with self #3524
Conversation
I dare anyone to review |
8a18dfb
to
a97e223
Compare
I've got a long train ride tomorrow evening, so challenge accepted ^^ |
|
||
## Checks equality of numbers, using an `epsilon` value. | ||
|
||
Arguments: | ||
- that: The number to check equality against. | ||
- epsilon: The value by which `this` and `that` can be separated by before | ||
- epsilon: The value by which `self` and `that` can be separated by before |
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.
I wonder what we should do about these?
this
and that
sounded nicely, now, not sure if we should change that
to something else? But I'm not sure if there are good alternatives either.
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.
Yes, this is something @ekmett raised as well
distribution/lib/Standard/Base/0.0.0-dev/src/System/File/Option.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Database/0.0.0-dev/src/Data/Column.enso
Outdated
Show resolved
Hide resolved
lib/scala/interpreter-dsl/src/main/java/org/enso/interpreter/dsl/model/MethodDefinition.java
Outdated
Show resolved
Hide resolved
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.
I've skimmed through all the changes and apart from the few comments above it looks good to me.
I'd like to discuss the that
issue, but it likely can be addressed separately from this PR, as it is already huge as it is.
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.
So many changed files! Let's get this done.
A semi-manual s/this/self appied to the whole standard library. Related to https://www.pivotaltracker.com/story/show/182328601 In the compiler promoted to use constants instead of hardcoded `this`/`self` whenever possible.
Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org>
9c65e5c
to
19b4c91
Compare
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.
Epic!
@MichaelMauderer @mwu-tow @wdanilo @farmaazon please ignore everything apart from |
A semi-manual s/this/self appied to the whole standard library. Related to https://www.pivotaltracker.com/story/show/182328601 In the compiler promoted to use constants instead of hardcoded `this`/`self` whenever possible. # Important Notes The PR **does not** require explicit `self` parameter declaration for methods as this part of the design is still under consideration.
Pull Request Description
A semi-manual s/this/self appied to the whole standard library.
Related to https://www.pivotaltracker.com/story/show/182328601
In the compiler promoted to use constants instead of hardcoded
this
/self
whenever possible.Important Notes
The PR does not require explicit
self
parameter declaration for methods as this partof the design is still under consideration.
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide dist
and./run ide watch
.