Show HN: AGL a toy language that compiles to Go

  • Thread starter alain_gilbert
  • Start date
  • Replies 0
  • Views 3
Status
Not open for further replies.
A

alain_gilbert

Guest
I spent the past 2 weeks making this toy programming language.
I basically forked the Go scanner/parser, and changed the syntax to have functions return a single value. This enable proper Result/Option type to be used as well as propagating errors with an operator.
I also wanted to have short "type inferred" anonymous functions to be able to use functions like Map/Reduce/Filter, without having to use 100 characters to specify the types.



Comments URL: https://news.ycombinator.com/item?id=44378517

Points: 58

# Comments: 11
 
Status
Not open for further replies.
Top