Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

lol MIT

Name: Anonymous 2011-01-18 11:18

Input: print 5 == 5.0

Output: True1

--
1Scheme (the initial language taught at MIT before Python) took type to an extreme. 5.0 and 5 were not considered equal because one was an integer and the other was a float. You weren’t even allowed to do (4 + 6.0.) Python is more rational – it treats the two values as equal.

Name: Anonymous 2011-01-18 11:27

$ sudo apt-get install plt-scheme
[sudo] password for xarn:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  plt-scheme-doc
The following NEW packages will be installed:
  plt-scheme plt-scheme-doc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.2MB of archives.
After this operation, 252MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
$

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List