Bash is the programming language where an empty if block is a syntax error
-
-
PHP, JavaScript: "lol triple equals sign" Bash: [earliest versions literally had no syntax for comparing variables]
-
And let's not forget Bash's jaw-dropping default behaviour of "If something goes wrong, just keep going"
- 1 more reply
New conversation -
-
-
@qntm@whitequark not pure but copureThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@qntm@profanegeometry they can return numbers from 0 to 255, can't they? -
@duckinator@qntm sort of, but anything other than 0 implicitly means "hey this thing didn't work right" to a lot of things - 1 more reply
New conversation -
-
-
@qntm as someone who started in “real” scripting langs before ever using bash in anger this was unbelievable to me…Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@qntm I was like “I must be missing some documentation. How do I return something from a function?!?” -
@jasonmp85@qntm you print it. A function from a library in any other language isn't supposed to, but in bash, that can be your return value
End of conversation
New conversation -
-
-
@qntm@FioraAeterna So much (*sadface*).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.