"So this one guy says the only way to do this is with a bijective map on a
semi-algebra, whatever the hell that is, and this other guy says to use a
library which doesn't have docs and didn't exist until last week and that he
wrote. The first guy and the second guy seem to hate each other. What's the
Scala way of sending an HTTP request to a server?"


>That right there's gotta hurt

Well, not really, and in my opinion this is a very easy issue to dispel. I 
have never talked, nor heard anyone talk, about a bijective map on 
semi-algebra, and I have been using Scala for 3+ years now. Next up, there 
are plenty of libraries in any language (Java included) with insufficient 
documentation, just use a different library. There are enough to choose 
from, for one thing you have the full choice of Scala *and* Java libraries 
to choose from. Case in point, the last statement displays some surprising 
ignorance. The "Scala" way of sending an HTTP request to a server, well you 
could start by taking your pick of these two:

val url = new URL(urlString)
val body = url.openStream

(i.e. the "Java" way - why fix what's not broke) or

val source = Source.fromURL("http://www.google.com";)

Take your pick, but when trying to raise issues with the inherent 
complexity of Scala, I think you need to choose a different example. These 
seem pretty easy and self explanatory (and in the case of the first one, 
very familiar to any Java developer) to me.

Dick

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/O6HmKsBt6w0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to