Hacker News new | past | comments | ask | show | jobs | submit login

String typing, or stringly typed interfaces (parody of strong typing) is a phrase in common use.

HTTP is a good example of something normally using string typing; most web servers treat headers, for example, as text, rather than as data, and so you end up with a lot of invalid stuff because of misunderstandings about what the values actually are or how they should be interpreted or written.

That's a trap that I'm dodging in rust-http; in there, (known) headers are data, serialised to text only for transmission, not text. (I'll freely admit, however, that this is an approach I would never take in Python; I'm confident it would lead to more errors than the alternative.)




Have you looked at how Happstack leverages the type system?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: