hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 749c39109903ca7ec322f9c7cc5e0fa15d7aa0fe
parent 0f219a2173222ad8dc113e68df557daf82aebeaa
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 09:36:28 -0500

main.ha: use type inference for in

Diffstat:
Mmain.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.ha b/main.ha @@ -4,7 +4,7 @@ use io; use os; export fn main() void = { - let in: (*io::stream, str) = switch (len(os::args)) { + let in = switch (len(os::args)) { 1 => (os::stdin, "<stdin>"), 2 => { let fd = match (os::open(os::args[1])) {