Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Provide alphanumeric methods with descriptive names as alternatives to symbolic operators #57

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

julienrf
Copy link
Contributor

Fixes #46.

I systematically added methods with alphanumeric names for all operations and defined symbolic operators as aliases.

I suffixed operations on mutable collections with InPlace, since that’s the new convention.

@julienrf julienrf changed the base branch from treemap to master April 20, 2017 12:19
@julienrf julienrf merged commit 29a42dc into master Apr 20, 2017
@julienrf julienrf deleted the alphanumeric-aliases branch April 20, 2017 12:21
def addAllInPlace(s: String): this.type = { sb.append(s); this }

/** Alias for `addAllInPlace` */
def ++= (s: String): this.type = addAllInPlace(s)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be marked @inline. And what happened to +=?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+= is defined in Growable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide descriptive names as alternatives to the most commonly used symbolic method names
2 participants