3 Commits c8b66e4943 ... 213f29e37f

Author SHA1 Message Date
  mizusato 213f29e37f fix typo 1 year ago
  mizusato a4b5275da9 update readme 1 year ago
  mizusato 4fd4f14d0b fix 1 year ago
2 changed files with 8 additions and 8 deletions
  1. 2 2
      README.md
  2. 6 6
      interpreter/builtin/builtin.km

+ 2 - 2
README.md

@@ -2,8 +2,8 @@
 
 > **********************************************************
 > IMPORTANT NOTE:
-> This repo is now an archive.
-> This project will continue in the name of RxGui.
+> Code in this repo is experimental and unstable.
+> For a stable version of this project, see RxGui.
 > https://github.com/maze1024x/RxGui
 > **********************************************************
 

+ 6 - 6
interpreter/builtin/builtin.km

@@ -968,14 +968,14 @@ operator bind-open[T] { e Editor[T], triggers $[Null] } $[Null] {
     @await (e.<File> <- new-doc.File?),
     @await (e.<LastSave> <- new-doc.Data),
     @await (e.<Override> <- new-doc.Data),
-    return ()
+    return (Null)
 }
 operator bind-save[T] { e Editor[T], triggers $[Null] } $[Null] {
     @concat-map (_, doc) = (triggers with-latest-from e.Document),
     @await new-file = { e.<Save>(doc) | log-error() },
     @await (e.<File> <- new-file),
     @await (e.<LastSave> <- doc.Data),
-    return ()
+    return (Null)
 }
 operator bind-save-as[T] { e Editor[T], triggers $[Null] } $[Null] {
     let doc = (e.Document map { doc => doc.(File?).Assign(Null) }),
@@ -983,16 +983,16 @@ operator bind-save-as[T] { e Editor[T], triggers $[Null] } $[Null] {
     @await new-file = { e.<Save>(doc) | log-error() },
     @await (e.<File> <- new-file),
     @await (e.<LastSave> <- doc.Data),
-    return ()
+    return (Null)
 }
 method Editor.Open $[Null] {
-    this | bind-open($(Null)) | end-with(Null)
+    this | bind-open($(Null))
 }
 method Editor.Save $[Null] {
-    this | bind-save($(Null)) | end-with(Null)
+    this | bind-save($(Null))
 }
 method Editor.SaveAs $[Null] {
-    this | bind-save-as($(Null)) | end-with(Null)
+    this | bind-save-as($(Null))
 }
 type EditorOpenBehavior[T] interface {
     Open Lambda[Bool,$[EditorDocument[T]]]