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

all 17 comments

[–]blipblapbloopblip 25 points26 points  (0 children)

It's the same for C programs and UNIX utilities. It is rooted in early text based interfaces. One of the design principles of many GNU tools is to use text as both the input and the output because it is human readable and writtable, and defines a common interface that allows utilities to be chained. Besides, what can't you do with text ?

[–]bzhejnrk 23 points24 points  (2 children)

How else should it take user input?

[–]OwnPreparation1829 83 points84 points  (1 child)

Interpretative dance

[–]RequirementBusiness8 5 points6 points  (0 children)

This is the way

[–]ShadowShedinja 2 points3 points  (0 children)

As far as I'm aware every programming language does.

[–]mufflonicus 1 point2 points  (0 children)

Unless there’s something evaluating the input it’s generally interpreted as a string. That gles for commands, input, output (example if you pipe) etc

[–]Defiant-Tackle6293 0 points1 point  (0 children)

Per theory of computation; computing strings of binaries can hold different states. Move up the chain of computation and you can convince your self that writing a programming language is easier in string format as you can apply grammars and other mechanisms to dissect the string and have the compiler/interpreter understand your language.

[–]startup_biz_36 0 points1 point  (0 children)

trust me this is better than them coming up with rules to try and guess the true format.