3 ms·
I was able to find a link to examples in the main README, although it's true that in the Documentation markdown file itself is missing the reference. In case i
by syrusakbary 4y ago
I was able to find a link to examples in the main README, although it's true that in the Documentation markdown file itself is missing the reference.
In case it's useful for future readers, here are some samples:
https://github.com/titzer/virgil/tree/master/doc/tutorial/examples https://github.com/titzer/virgil/tree/master/doc/tutorial/ex...
- conaclos 4y agoThe syntax is not the same. This is an example from itzer/virgil [1]: def fib(i: int) -> int { if (i <= 1) return 1; return fib(i - 1) + fib(i - 2); } And an example from munificent/vigil [2]: def fib(n): if n < 2: result = n else: result = fib(n - 1) + fib(n - 2) swear result >= 0 return result [1] https://github.com/titzer/virgil/blob/master/doc/tutorial/Methods.md https://github.com/titzer/virgil/blob/master/doc/tutorial/Me... [2] https://github.com/munificent/vigil https://github.com/munificent/vigil