Method cascading (original) (raw)

About DBpedia

In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below.

Property Value
dbo:abstract In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below. (en) 方法级联调用(Method cascading)是面向对象编程语言中对同一个对象调用其多个方法时的一种语法糖。特别适用于实现流畅接口。 例如在Dart语言中: a..b ..c; 等价于单独调用: a.b;a.c; Visual Basic允许对同一个对象调用任意多次的方法或属性: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = valueEnd With With..End With块在Visual Basic中可以嵌套: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = value With .SubObject .SubProperty = otherValue .AnotherMethod(42) End WithEnd With (zh)
dbo:wikiPageExternalLink http://news.dartlang.org/2012/02/method-cascades-in-dart-posted-by-gilad.html https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/with-end-with-statement https://www.dartlang.org/articles/m1-language-changes/ https://www.dartlang.org/articles/m1-language-changes/%23cascades
dbo:wikiPageID 41071310 (xsd:integer)
dbo:wikiPageLength 7452 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID 1086396511 (xsd:integer)
dbo:wikiPageWikiLink dbr:Method_(computer_programming) dbr:Object-oriented_programming dbr:Smalltalk dbr:Syntax_(programming_languages) dbr:Dart_(programming_language) dbr:Fluent_interface dbr:Property_(programming) dbc:Method_(computer_programming) dbr:Syntactic_sugar dbr:Method_chaining dbr:Visual_Basic
dbp:wikiPageUsesTemplate dbt:Cite_book dbt:Refbegin dbt:Refend dbt:Reflist dbt:See dbt:Sfn
dct:subject dbc:Method_(computer_programming)
gold:hypernym dbr:Syntax
rdf:type dbo:Software
rdfs:comment In object-oriented programming, method cascading is syntax which allows multiple methods to be called on the same object. This is particularly applied in fluent interfaces. For example, in Dart, the cascade: a..b ..c; is equivalent to the individual calls: a.b;a.c; Method cascading is much less common than method chaining – it is found only in a handful of object-oriented languages, while chaining is very common. A form of cascading can be implemented using chaining, but this restricts the interface; see , below. (en) 方法级联调用(Method cascading)是面向对象编程语言中对同一个对象调用其多个方法时的一种语法糖。特别适用于实现流畅接口。 例如在Dart语言中: a..b ..c; 等价于单独调用: a.b;a.c; Visual Basic允许对同一个对象调用任意多次的方法或属性: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = valueEnd With With..End With块在Visual Basic中可以嵌套: With ExpressionThatReturnsAnObject .SomeFunction(42) .Property = value With .SubObject .SubProperty = otherValue .AnotherMethod(42) End WithEnd With (zh)
rdfs:label Method cascading (en) 方法级联调用 (zh)
owl:sameAs freebase:Method cascading wikidata:Method cascading dbpedia-zh:Method cascading https://global.dbpedia.org/id/fbwu
prov:wasDerivedFrom wikipedia-en:Method_cascading?oldid=1086396511&ns=0
foaf:isPrimaryTopicOf wikipedia-en:Method_cascading
is dbo:wikiPageWikiLink of dbr:Algoid_(programming_language) dbr:Input/output_(C++) dbr:Smalltalk dbr:Cascade dbr:Dart_(programming_language) dbr:Fluent_interface dbr:Operator_(computer_programming) dbr:Method_chaining
is foaf:primaryTopic of wikipedia-en:Method_cascading