|
|
|
|
|
by ryanianian
2712 days ago
|
|
Kinda neat but it looks extremely limited in ways that I think would frustrate a beginner: E.g. the following doesn't do anything #include <iostream>
using namespace std;
int get7() { return 7; }
int main() { return get7(); }
but if you manually inline the get7() it displays 7, so returning the value from another function doesn't work which seems quite odd and I think would preclude playing with recursion. (You can assign the get7() return value to a local var and return that and it works so there is a workaround but it's awkward.)Similarly, if there are compiler errors it gives no indication as to what the error might be. C++ compiler errors are always pretty terrible but not showing anything about where even a parse went wrong could really get in the way of fixing typos etc that can really get in the way of learning the concepts. |
|