Skip to content

Commit 44c9b18

Browse files
IldySilvaparlough
andauthored
Add interop term to the glossary (#7092)
Contributes to #6461 --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
1 parent 5d57902 commit 44c9b18

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/data/glossary.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,37 @@
773773
- "Read-only"
774774
- "Unchangeable"
775775

776+
- term: "Interop"
777+
short_description: |-
778+
The ability for Dart code to interact with code written in other languages.
779+
long_description: |-
780+
**Interop** (short for _interoperability_) refers to Dart's ability to
781+
communicate and work with code written in other programming languages.
782+
783+
In Dart, interop is commonly used to:
784+
785+
- Call native code written in languages like C, C++, or Rust.
786+
- Interact with platform-specific APIs.
787+
- Reuse existing libraries that aren't written in Dart.
788+
789+
Dart provides different interop mechanisms
790+
depending on the platform and use case.
791+
For example, Dart applications can use the
792+
Foreign Function Interface (FFI) to call native libraries, or
793+
platform-specific interop layers when running on Flutter or the web.
794+
related_links:
795+
- text: "C interop using dart:ffi"
796+
link: "/interop/c-interop"
797+
type: "doc"
798+
- text: "Hooks"
799+
link: "/tools/hooks"
800+
type: "doc"
801+
labels:
802+
- "interop"
803+
- "platform"
804+
alternate:
805+
- "Interoperability"
806+
776807
- term: "Irrefutable pattern"
777808
short_description: |-
778809
A pattern that always matches.

0 commit comments

Comments
 (0)