Off Topic > Off Topic
Programming Megathread
Foxscotch:
--- Quote from: Gytyyhgfffff on August 30, 2017, 04:46:41 PM ---notably you have a power operator and i know ^ is usually reserved for something else like xor but i don't care
int test4 = 2 ^ 4
--- End quote ---
why not use the more typical **, or just leave it to a function
Gytyyhgfffff:
--- Quote from: Foxscotch on August 30, 2017, 08:09:09 PM ---why not use the more typical **, or just leave it to a function
--- End quote ---
i didn't think of the ** thing and i didn't want to have it as a function because that stuff takes about 50 years to type out compared to the 1 nanosecond it takes to type something like ^ or **
Placid:
--- Quote from: Gytyyhgfffff on August 30, 2017, 08:16:52 PM ---i didn't think of the ** thing and i didn't want to have it as a function because that stuff takes about 50 years to type out compared to the 1 nanosecond it takes to type something like ^ or **
--- End quote ---
I meannn. Yes? But do you anticipate doing power operations ~that~ much? 'cause I can tell you I barely use them and when I do I might as well be typing out pow(b, x)...
Also have you looked into the process of actually creating compilers and stuff rather than evaluating the language entirely in Java? I know it's a lot more work but honestly it's a lot more useful in terms of learning and might require a lot more background knowledge but it's a really rewarding process. I'm in a class that helps build that knowledge right now so if you ever wanted to talk about it I'd be down to talk, but we're gonna be making a compiler for the language "COOL" (click) and we've already made an interpreter for a stack machine (click) which is a good introduction to the process.
Potatoh:
i payed 50 dollars for a massive book on javascript
im instead studying torquescript and learning off of addons made by the community
Drydess:
torquescript is basically bootleg js so that book mightve come in handy