Skip to content

Commit 4c5af34

Browse files
Give examples of UFCS in other languages (#4181)
1 parent 2d71451 commit 4c5af34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/function.dd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,6 +4265,13 @@ $(H2 $(LNAME2 pseudo-member, Uniform Function Call Syntax (UFCS)))
42654265
$(HTTP www.drdobbs.com/architecture-and-design/component-programming-in-d/240008321,
42664266
function chaining and component programming).
42674267
)
4268+
This general idea has different names in other programming languages.
4269+
The following is a short list:
4270+
$(UL
4271+
$(LI C#: Extension methods)
4272+
$(LI Kotlin: Extension functions)
4273+
$(LI Zig: Dot notation)
4274+
)
42684275

42694276
$(P A more complex example:)
42704277

0 commit comments

Comments
 (0)