Author Topic: Language  (Read 7299 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Language
« Reply #15 on: November 09, 2021, 11:51:47 am »
See I miss having a separate sign for the - sign for subtraction operation different from the - sign to show the number value is below 0.

This was solved with Oh Interpreter with s[A,B] for subtraction, which isn't communitive either, and any -sign directly left of number makes it < 0.

Is - for Subtraction operation OR is - for value < 0?? too ambiguous and nightmare to code for Evaluators.

@Colonel_Panic take notes!

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Language
« Reply #16 on: November 09, 2021, 12:40:50 pm »
hello Ed...and others of course

Ed ..you killing me with this negative power_up-s
i tested it right now in my microA and ouhh...
it must be written like this to get same result but work
in my case i made power_up like a function with parens (why ..i don't know )

by the way Ed...is same result in your subSet Interpreter ...i cannot test it ?
ed_neg_powUP.png
* ed_neg_powUP.png (Filesize: 12.08 KB, Dimensions: 633x219, Views: 421)
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: Language
« Reply #17 on: November 09, 2021, 02:08:02 pm »
hi Ed...
i get it how to test it in your subset Interpreter
uhh...little bit crazy because i don't use console very much
but work well ...!!!
subEd_powerUp_test.png
* subEd_powerUp_test.png (Filesize: 19.17 KB, Dimensions: 663x449, Views: 405)
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline johannhowitzer

  • Forum Regular
  • Posts: 118
    • View Profile
Re: Language
« Reply #18 on: November 15, 2021, 11:18:48 pm »
This is why I always ALWAYS use parentheses in everything, both in programming and in math on paper.  Never leave it up to order of operations confusion when you never have to.

Offline Colonel_Panic

  • Newbie
  • Posts: 54
    • View Profile
Re: Language
« Reply #19 on: December 23, 2021, 09:13:06 pm »
Hi everyone... I'm back for a few days on the internet.
whoever else here says:

"I use parentheses for stuff like this !"

they are in agreement with me.
I intend to next use this thing when I want to do "algebraic notation; calculated fields"
on my database. I *think* as long as I use parenthesis, I will be fine to
for instance calculate sales tax.

PS - I myself would "routinely" use (-2) to represent negative 2 to avoid MY OWN confusion, regardless of what the compiler thinks.
I mean, as my own programmer? I want to just GLANCE at a screen of code and see what I was doing.