I just heard about this but...
It's a web language being developed by Google.
http://en.wikipedia.org/wiki/Dart_(programming_language)
Would you want it to replace JavaScript (which is it future goal)?
It looks a lot like C or Java.
//this is "Hello World" program main() { print('Hello World!'); }
According to Wikipedia, this is a Fibbonaci sequence in it.
int fib(int n) => (n > 1) ? (fib(n - 1) + fib(n - 2)) : n; main() { print('fib(20) = ${fib(20)}'); }
What are your thoughts???
Offline
Zeusking19 wrote:
*groan*
More Fibbonaci?
We learnt that in maths.
Never again.
I made my own in Javascript
I guess this one is a ton shorter
//javascript version var a = 0; var b = 0; var c = 0; var d = new Array(); var arrayCounter d[0] = 0; d[1] = 1; function fib(){ arrayCounter = (d.length - 1); a = d[arrayCounter]; b = d[(arrayCounter - 1)]; c = (a + b) arrayCounter = (d.length); d[arrayCounter] = c; console.log(d) } for (i = 0; i < 10; i++) { fib() }
Offline