3 ms·
" Java and its adherents have been the only group of people I have ever encountered that insist on wrapping a perfectly valid markup language like HTML into A F
by vegai 18y ago
" Java and its adherents have been the only group of people I have ever encountered that insist on wrapping a perfectly valid markup language like HTML into A FREAKING TAG LIBRARY, THAT JUST OUTPUTS HTML?!?!?! "
http://www.haskell.org/ghc/docs/latest/html/libraries/xhtml/Text-XHtml.html http://www.haskell.org/ghc/docs/latest/html/libraries/xhtml/...
I don't know if the Java tag library you mentioned is as good as the one in GHC, but it sure is useful to be able to combine pieces of html while maintaining type safety.
- silentbicycle 18y agoI haven't used PHP, but is this somewhat like how Perl has regular expressions embedded in the syntax, while Python (for example) uses them via a library? PHP is a DSL for web programming and Perl is (arguably) a DSL for Unix system administration, so it is probably worth including those in the core language. If so, it also means that complaining that Java (or Haskell, etc.) doesn't have HTML embedded in it is like complaining that C can't have embedded makefiles.