Brendan Eich: The infernal semicolon
brendaneich.com
Brendan Eich: The infernal semicolon
1–10 of 143 posts
Re: Brendan Eich: The infernal semicolon
#2 "ASI [“Automatic Semicolon Insertion”] is an error correction
procedure. If you start to code as if it were a universal
significant-newline rule, you will get into trouble."—Brendan EichRe: Brendan Eich: The infernal semicolon
#3The key point: "ASI [“Automatic Semicolon Insertion”] is an error correction procedure. If you start to code as if it were a universal significant-newline rule, you will get into trouble."—Brendan Eich
Re: Brendan Eich: The infernal semicolon
#4Can we reconsider using this thing as the assembler for the web? Can we come up with a sane, cross-platform bytecode standard?
Re: Brendan Eich: The infernal semicolon
#5Re: Brendan Eich: The infernal semicolon
#6Re: Brendan Eich: The infernal semicolon
#7The key point: "ASI [“Automatic Semicolon Insertion”] is an error correction procedure. If you start to code as if it were a universal significant-newline rule, you will get into trouble."—Brendan Eich
Re: Brendan Eich: The infernal semicolon
#8The key point: "ASI [“Automatic Semicolon Insertion”] is an error correction procedure. If you start to code as if it were a universal significant-newline rule, you will get into trouble."—Brendan Eich
That doesn't sound right to me. Making s language's syntax more liberal is not a sane way to correct errors. If anything, JavaScript's ASI is an error creation mechanism.
Re: Brendan Eich: The infernal semicolon
#9The key point: "ASI [“Automatic Semicolon Insertion”] is an error correction procedure. If you start to code as if it were a universal significant-newline rule, you will get into trouble."—Brendan Eich
That doesn't sound right to me. Making s language's syntax more liberal is not a sane way to correct errors. If anything, JavaScript's ASI is an error creation mechanism.
If you try to take your key with you at all times, the super will save your bacon once in a blue moon when you forget your key. On the other hand, if you think of the door as only needing a key when you wish to have it opened on nights and week-ends, you are on your way to trouble.
Re: Brendan Eich: The infernal semicolon
#10Moar downvotes! Can we reconsider using this thing as the assembler for the web? Can we come up with a sane, cross-platform bytecode standard?