Languages Features Calendar About Lists Add Language
GitHub icon

Method Chaining

Method Chaining

Method Chaining is a language feature.

Method chaining, also known as named parameter idiom, is a common syntax for invoking multiple method calls in object-oriented programming languages. Each method returns an object, allowing the calls to be chained together in a single statement without requiring variables to store the intermediate results.

Languages with Method Chaining include JavaScript

Example from JavaScript:

"hello world".toString().substr(0, 1).length

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub