{"action":"closed","issue":{"url":"https://api.github.com/repos/andrewdavidmackenzie/flow/issues/57","repository_url":"https://api.github.com/repos/andrewdavidmackenzie/flow","labels_url":"https://api.github.com/repos/andrewdavidmackenzie/flow/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/andrewdavidmackenzie/flow/issues/57/comments","events_url":"https://api.github.com/repos/andrewdavidmackenzie/flow/issues/57/events","html_url":"https://github.com/andrewdavidmackenzie/flow/issues/57","id":299387976,"number":57,"title":"Need some concept of \"last value\" produced by a function so it's not called again","user":{"login":"andrewdavidmackenzie","id":5529132,"avatar_url":"https://avatars2.githubusercontent.com/u/5529132?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewdavidmackenzie","html_url":"https://github.com/andrewdavidmackenzie","followers_url":"https://api.github.com/users/andrewdavidmackenzie/followers","following_url":"https://api.github.com/users/andrewdavidmackenzie/following{/other_user}","gists_url":"https://api.github.com/users/andrewdavidmackenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewdavidmackenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewdavidmackenzie/subscriptions","organizations_url":"https://api.github.com/users/andrewdavidmackenzie/orgs","repos_url":"https://api.github.com/users/andrewdavidmackenzie/repos","events_url":"https://api.github.com/users/andrewdavidmackenzie/events{/privacy}","received_events_url":"https://api.github.com/users/andrewdavidmackenzie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T15:05:57Z","updated_at":"2018-03-26T19:22:11Z","closed_at":"2018-03-26T19:22:11Z","author_association":"OWNER","body":"For a function like stdin, send EOF when reading from a file (or Control-D on stdin) so that when it produced a Null result it causes a clean termination and is not called again, not like the current panic!\r\n\r\ncargo run --manifest-path flowc/Cargo.toml -- samples/echo/     \r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs\r\n     Running `target/debug/flowc samples/echo/`\r\ndsadasdda\r\ndsadasdda\r\nERROR   - Process STDERR:\r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs\r\n     Running `samples/echo/rust/target/debug/echo`\r\nthread 'main' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:335:21\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::_print\r\n             at libstd/sys_common/backtrace.rs:71\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at libstd/sys_common/backtrace.rs:59\r\n             at libstd/panicking.rs:207\r\n   3: std::panicking::default_hook\r\n             at libstd/panicking.rs:223\r\n   4: std::panicking::begin_panic\r\n             at libstd/panicking.rs:402\r\n   5: std::panicking::try::do_call\r\n             at libstd/panicking.rs:349\r\n   6: std::panicking::try::do_call\r\n             at libstd/panicking.rs:325\r\n   7: <core::ops::range::Range<Idx> as core::fmt::Debug>::fmt\r\n             at libcore/panicking.rs:72\r\n   8: <core::ops::range::Range<Idx> as core::fmt::Debug>::fmt\r\n             at libcore/panicking.rs:51\r\n   9: <core::option::Option<T>>::unwrap\r\n             at /Users/travis/build/rust-lang/rust/src/libcore/macros.rs:20\r\n  10: alloc::raw_vec::alloc_guard\r\n             at ./flowstdlib/src/stdio/readline.rs:12\r\n  11: std::panicking::begin_panic\r\n             at ./flowrlib/src/function.rs:64\r\n  12: core::fmt::num::<impl core::fmt::Debug for usize>::fmt\r\n             at ./flowrlib/src/execution.rs:37\r\n  13: echo::main\r\n             at src/main.rs:25\r\n  14: std::rt::lang_start::{{closure}}\r\n             at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74\r\n  15: std::panicking::try::do_call\r\n             at libstd/rt.rs:59\r\n             at libstd/panicking.rs:306\r\n  16: panic_unwind::dwarf::eh::read_encoded_pointer\r\n             at libpanic_unwind/lib.rs:102\r\n  17: rust_panic\r\n             at libstd/panicking.rs:285\r\n             at libstd/panic.rs:361\r\n             at libstd/rt.rs:58\r\n  18: std::rt::lang_start\r\n             at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74\r\n  19: echo::get_matches\r\n\r\nERROR   - Exited with status code: 101\r\n"}}
{"actor":{"display_login":"andrewdavidmackenzie"}}