Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
353 views

Common Lisp: How to create a concatenation-prefix macro, similar to '? [closed]

Common Lisp macros typically use included-prefix notation: (operator stuff...) However, the special quote macro ' uses concatenated-prefix notation: operator stuff , or alternatively operator(stuff)....
DragonLord's user avatar
  • 6,625
14 votes
4 answers
29k views

overloading postfix and prefix operators

Please consider the following code: #include <iostream> using namespace std; class Digit { private: int m_digit; public: Digit(int ndigit = 0) { m_digit = ndigit; } ...
user avatar
398 votes
17 answers
378k views

Why avoid increment ("++") and decrement ("--") operators in JavaScript?

One of the tips for jslint tool is: ++ and -- The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second only to ...
artlung's user avatar
  • 33.8k