BASIC async syntax idea

https://news.ycombinator.com/item?id=9130928
by z3t4 • 11 years ago
1 0 11 years ago
  FUNCTION foo(a, b, c)
    IF b THEN 
      CALL bar(a) THEN
         GIVE a
      END CALL
    ELSE
       RETURN c
    END IF
  END FUNCTION
So CALL ... THEN is like a promise and GIVE like a callback

What do you think?

Yesterday I got this urge of creating a new programming language. And I'm a fan of the BASIC syntax.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com