{"by":"alain_gilbert","descendants":13,"id":44378517,"kids":[44408692,44408546,44409335,44408468,44408969],"score":83,"text":"I spent the past 2 weeks making this toy programming language.<p>I basically forked the Go scanner&#x2F;parser, and changed the syntax to have functions return a single value. This enable proper Result&#x2F;Option type to be used as well as propagating errors with an operator.<p>I also wanted to have short &quot;type inferred&quot; anonymous functions to be able to use functions like Map&#x2F;Reduce&#x2F;Filter, without having to use 100 characters to specify the types.","time":1750865798,"title":"Show HN: AGL a toy language that compiles to Go","type":"story","url":"https://github.com/alaingilbert/agl"}