From a2d2f2a02738fbc28b54081b262b25657bc22df0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 24 Aug 2022 05:48:28 +0000 Subject: [PATCH] Update 'Interfaces' --- Interfaces.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Interfaces.md diff --git a/Interfaces.md b/Interfaces.md new file mode 100644 index 0000000..8246e6d --- /dev/null +++ b/Interfaces.md @@ -0,0 +1,15 @@ +Interfaces in ARF are like interfaces in Go, that is to say, their methods are +defined and any object that has at least those methods can fulfill that +interface. + +They are defined like this: + +``` +face ro ReadWriter + read + > into:{Byte ..} + < amountRead:Size + write + > buffer{Byte ..} + < amountWrote:Size +``` \ No newline at end of file