Questions tagged [prefix]

7 questions
10
votes
5 answers

Wrapping my mind around prefix notation?

I'm reading about LISP. I understand how prefix notation works at a certain level, but I was wondering if there are any tricks to making it intuitive.
Vivian River
  • 2,397
  • 5
  • 21
  • 32
6
votes
2 answers

Postfix vs Prefix

I have read at a few places, that Postfix is easier to evaluate & easier to convert to Code than Prefix. I understand that if you parse a prefix expression from left to right, you might not be able to evaluate directly(as some operands might be…
nikel
  • 169
  • 1
  • 4
6
votes
2 answers

Project based prefix for class names

My project leader uses project based prefixes for class names, lets say projects name ABC, he create User class name as ABCUser. and he says he do this becasuse if he wants to make User.aspx Users get mixed. so I told him why not use namespace…
Mert
  • 163
  • 1
  • 6
5
votes
2 answers

why use postfix /prefix expression instead of infix?

I understand how to convert infix to postfix/prefix but I do not understand why postfix or prefix expression are used in computer system? What is the advantage of postfix prefix over infix expression?
Joydip Ghosh
  • 77
  • 1
  • 1
  • 3
4
votes
3 answers

When should I prefix names with the project name?

If you work with SharePoint, you'll see classes like SPList, SPSite etc. I've seen variations of this on other projects, in other technologies, e.g. for a CRM project, classes named CRMLoggingFactory, CRMEntity etc. This stands out when you look at…
JohnDoDo
  • 2,309
  • 2
  • 18
  • 32
3
votes
8 answers

Are there real world applications where the use of prefix versus postfix operators matters?

In college it is taught how you can do math problems which use the ++ or -- operators on some variable referenced in the equation such that the result of the equation would yield different results if you switched the operator from postfix to prefix…
Kenneth
  • 2,703
  • 2
  • 21
  • 30
0
votes
1 answer

User interfaces for C function completion

In method call syntax in many object-oriented languages, the receiver object goes to the left of the method name, e.g. someObject.someMethod(). This comes in handy when using an IDE with code completion/code assist/Intellisense; when the user types…