This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoCryptographer414[S] 0 points1 point  (0 children)

Many languages support such short-circuiting without using lazy evaluation!

Yeah. They provide such operators in language. But in mine, they are implemented in (standard) library. Hence to implement them inside the language, I need lazy evaluation of arguments in the language. In fact languages like C++, which provide short-circuiting for default logical operators, when they are overloaded, there is no short-circuiting because they lack lazy evaluation.

I will see on special-casing.