0 Members and 1 Guest are viewing this topic.
This has nothing to do with the calculator lolEDIT: Damnit, wrong forum... Can someone move this? (To here)
Umm. A couple of things. I think you should make strings be able to be in single our double quotes, just because so many people are so used to that. Also, instead of the @ symbol, PLEASE PLEASE PLEASE use escape characters ("\n"=newline "\t"=tab "\\"=\ "\0"=null "\""=" "\'"=' etc.)They are used for every computer language I've seen. (Python, Java, C++, C, Groovy, C#, Javascript, PHP, etc.)
MyFunc([arg1][arg2][arg3]){{or}}int [var1][var2][var3];{{or even}}int array1[5] = [[1][2][3][4][5]];{{[] == null}}
Umm. A couple of things. I think you should make strings be able to be in single our double quotes, just because so many people are so used to that. Also, instead of the @ symbol, PLEASE PLEASE PLEASE use escape characters ("\n"=newline "\t"=tab "\\"=\ "\0"=null "\""=" "\'"=' etc.)They are used for every computer language I've seen. (Python, Java, C++, C, Groovy, C#, Javascript, PHP, etc.)Finally, methods can return a value. If they don't want to, then the return type is void.
Agreed. I think the C style of quotes, where single quotes are for a single character, literally replacing it in the program with the ASCII constant, and double quotes for strings, works better, rather than not differentiating between the two, though.
I think single line comments using "//" would be nice. I know I usually just use that for all my commenting.You seem to use a lot of brackets, what if things like arguments were separated by brackets instead of commas, say:Code: [Select]MyFunc([arg1][arg2][arg3]){{or}}int [var1][var2][var3];{{or even}}int array1[5] = [[1][2][3][4][5]];{{[] == null}}
{{Zenon code here}}|<C#> /*C# code here*/|{{More Zenon code here}}