User loginNavigation |
Nimrod: A new statically typed, compiled programming language which supports metaprogramming
I would like to share this language here as it has recently had a new version released. Nimrod resembles Python in that it uses whitespace to delimit blocks and Pascal because of the way that types are defined (TType). It supports metaprogramming with macros and templates. Code example: # compute average line length var count = 0 var sum = 0 for line in stdin.lines: count += 1 sum += line.len echo "Average line length: ", if count > 0: sum / count else: 0 By dom96 at 2013-05-21 19:20 | LtU Forum | previous forum topic | next forum topic | other blogs | 16948 reads
|
Browse archivesActive forum topicsNew forum topics
|
Recent comments
1 day 6 hours ago
1 day 7 hours ago
1 day 18 hours ago
1 day 19 hours ago
2 days 7 hours ago
2 days 21 hours ago
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 5 days ago
3 weeks 6 days ago