Name: Anonymous 2017-06-28 6:16
Discuss.
Tewi.
CBecause it's lower level than the other languages.
PascalPascal was made to be an introductory language for teaching students.
JavaIt's an OOP language, and very much in demand.
Because it's lower level than the other languages.No, it has pointers and it's not the only language with pointers. It's different because it lacks higher level concepts, which requires people to make scripting languages and other crap instead of using the language directly.
Pascal was made to be an introductory language for teaching students.That's why it didn't make any sense to replace it with C.
It's an OOP language, and very much in demand.Java wasn't in demand when they were teaching Smalltalk and Eiffel. OOP was in demand, but not Java. The new generation of students who graduated knowing Java created the demand for Java.
That's why it didn't make any sense to replace it with C.How exactly do you teach low level concepts with Pascal?
Java wasn't in demand when they were teaching Smalltalk and Eiffel. OOP was in demand, but not Java.Yes, but the C syntax made it more appealing to them.
How exactly do you teach low level concepts with Pascal?You don't, that's what cpu architecture class covers.
How exactly do you teach low level concepts with Pascal?Low-level depends a lot on the hardware. Mental midgets (good choice of words) can't envision running on more advanced hardware like the iAPX 432 because C causes brain damage. On that kind of hardware, there would be a very different view of what low-level means. There's no such thing as generic ``systems programming''. People are afraid to make anything that can't run C.
Yes, but the C syntax made it more appealing to them.The C syntax made it more appalling to them. You're assuming most people who learned Java at the university were C programmers or liked C or C++ and that they like them because of the syntax. I think Java turned people off of programming, or at least statically typed compiled (it compiles to bytecode) languages. Why do you think there was this huge explosion in scripting languages? I don't even have a JVM on my computer, but systems tools on GNU/Linux are written in Python.
You're assuming most people who learned Java at the university were C programmers or liked C or C++no, it sounds more like they thought it'd be easier for them to learn if both syntaxes were related
for
and switch
can't even be blamed on that (contrast BLISS). This is because of the laziness and small brains of the C creators, and has nothing to do with the hardware or compiler size or speed. That's mental midget thinking.no it's not, C syntax is pretty easy to understand and using a similar one for both languages makes it easier for them to learn both
(defun fizzbuzz ()
(loop for x from 1 to 100 do
(princ (cond ((zerop (mod x 15)) "FizzBuzz")
((zerop (mod x 3)) "Fizz")
((zerop (mod x 5)) "Buzz")
(t x)))
(terpri)))
(1 to: 100) do:
[:n |
((n \\ 3)*(n \\ 5)) isZero
ifFalse: [Transcript show: n].
(n \\ 3) isZero
ifTrue: [Transcript show: 'Fizz'].
(n \\ 5) isZero
ifTrue: [Transcript show: 'Buzz'].
Transcript cr.]
int main() {
int i = 1;
while(i <= 100) {
if(i % 15 == 0)
puts("FizzBuzz");
else if(i % 3 == 0)
puts("Fizz");
else if(i % 5 == 0)
puts("Buzz");
else
printf("%d\n", i);
i++;
}
return 0;
}
public static void main(String[] args){
for(int i= 1; i <= 100; i++){
if(i % 15 == 0){
System.out.println("FizzBuzz");
}else if(i % 3 == 0){
System.out.println("Fizz");
}else if(i % 5 == 0){
System.out.println("Buzz");
}else{
System.out.println(i);
}
}
}
I want to write simple stuff right now and forget about it.This is how spaghetti code is created
i'd choose it over cryptic one-liner function composition.It's not cryptic if you write it yourself.
fix$(<$>)<$>(:)<*>((<$>((:[{- thor's mother -}])<$>))(=<<)<$>(*)<$>(*2))$1