Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 6505

This tag is for questions that aren't specific to a programming language or environment.

51 votes

Why don't we store the syntax tree instead of the source code?

Why don't we store this syntax tree instead of the source code? Every programmer in a team can serialize this tree to any language, they want and parse back to AST when they finished. Indeed, th …
Eric Lippert's user avatar
  • 46.4k
11 votes

What is the benefit of having the assignment operator return a value?

Are there any practical uses of the assignment operator's return value that could not be trivially rewritten? Generally speaking, no. The idea of having the value of an assignment expression be t …
Eric Lippert's user avatar
  • 46.4k
13 votes

How could thread safety be provided by a programming language similar to the way memory safe...

Java and C# provide memory safety by checking array bounds and pointer dereferences. It's important to first think about how C# and Java do this. They do so by converting what is undefined behavi …
Eric Lippert's user avatar
  • 46.4k
6 votes
Accepted

Do higher order functions violate the separation of data and code principle?

I'll answer your question by completely denying all of your premises. :-) I guess in a "perfect world", we would have programs made of data models and functions, and those functions manipulate dat …
Eric Lippert's user avatar
  • 46.4k