Computer Science Canada You think you can Turing? |
Author: | chrisbrown [ Wed Mar 03, 2010 5:44 pm ] | ||
Post subject: | You think you can Turing? | ||
|
Author: | DemonWasp [ Wed Mar 03, 2010 6:35 pm ] |
Post subject: | RE:You think you can Turing? |
Very clever. Interestingly, if you alias sin as another method, for example sine, it works fine. I wonder why Turing won't let you pass built-in methods around, but will let you pass around your own methods. |
Author: | TheGuardian001 [ Wed Mar 03, 2010 7:03 pm ] |
Post subject: | Re: You think you can Turing? |
That is pretty weird... I can't see any reason why it wouldn't let you pass a built in function... Wonder if it only opposes the trig commands, or all built in functions... |
Author: | DtY [ Wed Mar 03, 2010 9:07 pm ] |
Post subject: | Re: RE:You think you can Turing? |
DemonWasp @ Wed Mar 03, 2010 6:35 pm wrote: Very clever.
Probably something to make the language easier to implement.Interestingly, if you alias sin as another method, for example sine, it works fine. I wonder why Turing won't let you pass built-in methods around, but will let you pass around your own methods. |
Author: | DemonWasp [ Wed Mar 03, 2010 9:14 pm ] |
Post subject: | RE:You think you can Turing? |
Ah, laziness, my constant foe. |
Author: | chrisbrown [ Wed Mar 03, 2010 9:34 pm ] |
Post subject: | RE:You think you can Turing? |
If you look at the source, all the builtins are external functions, probably written in C++... Turing's creators didn't even want to use their own language! Side note: haven't touched Turing in 3 years; after learning other languages, you really notice the flaws in this one. |
Author: | DemonWasp [ Wed Mar 03, 2010 9:47 pm ] |
Post subject: | RE:You think you can Turing? |
This holds true in all languages - after going somewhere else, you notice the flaws in your old favourites. Some languages have their faults more apparent up-front, however. |
Author: | [Gandalf] [ Thu Mar 04, 2010 2:02 am ] |
Post subject: | RE:You think you can Turing? |
On the other hand, after exploring other languages you begin to understand why Turing was designed the way it was, and why many of its shortcomings exist. |